# openocd
Python interface library for [OpenOCD](https://openocd.org/).
# Dependencies
* Python >= 3.6
# Installation
Prerequisites:
* Python 3.6 or higher
* https://www.python.org/
* setuptools
* https://pypi.org/project/setuptools/
To install this package, run:
```bash
python setup.py install
```
# Example
```python
from openocd import OpenOcd
with OpenOcd() as oocd:
oocd.halt()
registers = oocd.read_registers(['pc', 'sp'])
print('Program counter: 0x%x' % registers['pc'])
print('Stack pointer: 0x%x' % registers['sp'])
oocd.resume()
```
# License
This project is licensed under the [GPLv3+](https://www.gnu.org/licenses/gpl-3.0.en.html) - see the [LICENSE](LICENSE) file for details.
Raw data
{
"_id": null,
"home_page": "https://gitlab.zapb.de/openocd/python-openocd",
"name": "openocd",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": "",
"keywords": "OpenOCD microcontroller debug embedded",
"author": "Marc Schink",
"author_email": "dev@zapb.de",
"download_url": "https://files.pythonhosted.org/packages/f5/84/477474b49ffca96c0281f618a1f94a37f510068abc5f31b27fac687c1e53/openocd-0.2.0.tar.gz",
"platform": null,
"description": "# openocd\n\nPython interface library for [OpenOCD](https://openocd.org/).\n\n\n# Dependencies\n\n* Python >= 3.6\n\n\n# Installation\n\nPrerequisites:\n\n* Python 3.6 or higher\n\n * https://www.python.org/\n\n* setuptools\n\n * https://pypi.org/project/setuptools/\n\nTo install this package, run:\n\n```bash\npython setup.py install\n```\n\n\n# Example\n\n```python\nfrom openocd import OpenOcd\n\nwith OpenOcd() as oocd:\n oocd.halt()\n registers = oocd.read_registers(['pc', 'sp'])\n\n print('Program counter: 0x%x' % registers['pc'])\n print('Stack pointer: 0x%x' % registers['sp'])\n\n oocd.resume()\n```\n\n# License\n\nThis project is licensed under the [GPLv3+](https://www.gnu.org/licenses/gpl-3.0.en.html) - see the [LICENSE](LICENSE) file for details.\n",
"bugtrack_url": null,
"license": "GPLv3+",
"summary": "Python interface library for OpenOCD",
"version": "0.2.0",
"project_urls": {
"Homepage": "https://gitlab.zapb.de/openocd/python-openocd",
"Source": "https://gitlab.zapb.de/openocd/python-openocd"
},
"split_keywords": [
"openocd",
"microcontroller",
"debug",
"embedded"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "3b7131ff78ca123f9e3ff81a8d1e243d361bfa4a6760981493c9e7752c9cc182",
"md5": "00cfdda594ef7f8481108d9e1d4c9841",
"sha256": "9a99e5980ba05a637ae6090262d7259068ae34734a3c661c2d249423f81d7583"
},
"downloads": -1,
"filename": "openocd-0.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "00cfdda594ef7f8481108d9e1d4c9841",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 18472,
"upload_time": "2024-02-03T16:36:56",
"upload_time_iso_8601": "2024-02-03T16:36:56.763672Z",
"url": "https://files.pythonhosted.org/packages/3b/71/31ff78ca123f9e3ff81a8d1e243d361bfa4a6760981493c9e7752c9cc182/openocd-0.2.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "f584477474b49ffca96c0281f618a1f94a37f510068abc5f31b27fac687c1e53",
"md5": "162583416e848a54306bfc460f019dc1",
"sha256": "5ff3e91fef3d64126b465aaf973d033ab986fd402a18939bab6b04828d325b79"
},
"downloads": -1,
"filename": "openocd-0.2.0.tar.gz",
"has_sig": false,
"md5_digest": "162583416e848a54306bfc460f019dc1",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 17475,
"upload_time": "2024-02-03T16:36:58",
"upload_time_iso_8601": "2024-02-03T16:36:58.710038Z",
"url": "https://files.pythonhosted.org/packages/f5/84/477474b49ffca96c0281f618a1f94a37f510068abc5f31b27fac687c1e53/openocd-0.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-02-03 16:36:58",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "openocd"
}