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.2.tar.gz (14.8 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.2-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

Details for the file pyopenocdclient-0.1.2.tar.gz.

File metadata

  • Download URL: pyopenocdclient-0.1.2.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for pyopenocdclient-0.1.2.tar.gz
Algorithm Hash digest
SHA256 299046f4f357399f1be0fc498f5ccfb300ec8f1aa6f03bd8ff210f7e777a0f45
MD5 b2fb08f1da04d0377699becbd00a09c9
BLAKE2b-256 4e3d7bc6af53ee522111b8a9465b11c8cca40178fbc9652fd2b65ddeed051bd0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyopenocdclient-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 95d338189d9930b35f41a7a2c3b2b0c9d5bca6172294ff018ead4450f6df1e30
MD5 5eed45464096bc0383f1b9fd0303a0c8
BLAKE2b-256 8539ac5682643e635a857b685d5a4ae53ea0cac4df861dbe85bf789ba07140ce

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