Skip to main content

Library for controlling OpenOCD from Python programs

Project description

PyOpenocdClient

Build documentation Code quality checks Unit tests Integration tests

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyopenocdclient-0.1.1.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyopenocdclient-0.1.1-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

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

Hashes for pyopenocdclient-0.1.1.tar.gz
Algorithm Hash digest
SHA256 bf0db75d7581e39aa0917d097555a5eb56da43344863a73b28bf53cc54db3f17
MD5 80197b05c6f6e4c7f74341ce2a5e1ca6
BLAKE2b-256 b82cf3756f63016d44d38bc4bd44498b69984b762959917595a5162a68cc1510

See more details on using hashes here.

File details

Details for the file pyopenocdclient-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pyopenocdclient-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a241fa1baab5202966475df0c76cfd44c875dda86a56059db583d1ae60e33c2a
MD5 e4c1b3a4ba9e7da76a097c050d0f0598
BLAKE2b-256 7b675c03d6950c4124740c65cade6ccffaa0bb8d4578e13138efeca0167bb5fd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page