Library for controlling OpenOCD from Python programs
Project description
PyOpenocdClient
PyOpenocdClient is a Python library for controlling OpenOCD software tool.
It allows to send TCL commands from Python programs to OpenOCD — for instance commands like halt execution of the program, view data in memory, place breakpoints, single-step, ...
Main features of PyOpenocdClient:
-
allow to send any TCL command to OpenOCD and obtain its result;
-
shorcuts for quick use of most common OpenOCD commands are provided;
-
command failures are detected (and reported as Python exceptions by default);
-
the code is fully covered via unit tests;
-
automatic integration testing against multiple versions of OpenOCD;
-
the code is multiplatform and portable — it does not have any dependencies except for the Python's standard library;
-
fully open-source under a permissive license (MIT license).
Quick instructions
Install PyOpenocdClient package using Pip:
$ python3 -m pip install PyOpenocdClient
Basic usage:
from py_openocd_client import PyOpenocdClient
with PyOpenocdClient(host="localhost", port=6666) as ocd:
ocd.reset_halt()
ocd.cmd("load_image path/to/program.elf")
ocd.resume()
# ...
Documentation
For full documentation, please visit: https://pyopenocdclient.readthedocs.io/en/latest/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyopenocdclient-0.1.1.tar.gz.
File metadata
- Download URL: pyopenocdclient-0.1.1.tar.gz
- Upload date:
- Size: 14.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf0db75d7581e39aa0917d097555a5eb56da43344863a73b28bf53cc54db3f17
|
|
| MD5 |
80197b05c6f6e4c7f74341ce2a5e1ca6
|
|
| BLAKE2b-256 |
b82cf3756f63016d44d38bc4bd44498b69984b762959917595a5162a68cc1510
|
File details
Details for the file pyopenocdclient-0.1.1-py3-none-any.whl.
File metadata
- Download URL: pyopenocdclient-0.1.1-py3-none-any.whl
- Upload date:
- Size: 17.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a241fa1baab5202966475df0c76cfd44c875dda86a56059db583d1ae60e33c2a
|
|
| MD5 |
e4c1b3a4ba9e7da76a097c050d0f0598
|
|
| BLAKE2b-256 |
7b675c03d6950c4124740c65cade6ccffaa0bb8d4578e13138efeca0167bb5fd
|