pycosmicsdk
Python SDK for the Binho Supernova and Binho Pulsar USB host adapters (I2C, I3C, SPI,
UART and GPIO) and the Binho Atira debug probe (SWD debug, target flash, target power), with
a blocking API and an asyncio twin for every call.
pip install pycosmicsdk
Binary wheels ship for CPython 3.10–3.14 on Linux x86_64, macOS arm64 and Windows
AMD64. The native CosmicSDK library is linked into the wheel, so there is nothing else to
install and no path to configure.
First steps
import pycosmicsdk as p
print(p.list_devices()) # every attached Supernova / Pulsar
with p.Device.open() as dev: # the first adapter found
print(dev.info.fw_version)
i2c = dev.i2c()
i2c.set_voltage(voltage_mv=3300)
i2c.bring_up(frequency_hz=400_000, pull_up=p.I2cPullUp.KOHM_1_0)
print(sorted(i2c.scan().addresses_7bit)) # addresses that ACKed
| Protocol | Supernova | Pulsar |
|---|---|---|
| I2C controller and target | bus A | buses A and B |
| I3C controller (all CCCs) and target | yes | — |
| SPI controller and target | yes (target not on rev B) | yes |
| UART | yes | yes |
| GPIO, with interrupts | yes | yes |
Large transfers can use the adapter's USB bulk endpoint: up to 32 KB on a Supernova and 16 KB on a Pulsar per call.
Binho Atira debug probe
DebugProbe drives the Atira: SWD debug (attach, halt, step, breakpoints, registers, memory),
target flash through the vendor's CMSIS flash algorithm straight from a .pack, target power,
SPI NOR flash on its header, and its UART bridge. It needs fw-atira 1.0 or newer; 1.9 pairs
with fw-atira 1.1, which splits the signal voltage and target power and handles self-powered
targets.
from pycosmicsdk import DebugProbe, list_debug_probes
from pycosmicsdk.debugprobe import SignalVoltageState, TargetFlash
print(list_debug_probes())
with DebugProbe.open(serial=list_debug_probes()[0].serial_number) as probe:
power = probe.power() # fw-atira 1.1
if power.signal_voltage_check().state == SignalVoltageState.NO_SUPPLY:
power.set_signal_voltage_level(3300) # pin 1 dead: the probe powers it
power.set_signal_voltage_enabled(True)
power.set_target_power_enabled(True)
else:
power.signal_voltage_use_external() # self-powered: match its level
probe.debug().attach()
pack = "Keil.STM32H5xx_DFP.2.3.1.pack" # the vendor's device family pack
info = probe.target_flash().load_pack_device(pack, "STM32H503RBTx", confirmed_connect_steps=[])
probe.target_flash().write(info.flash_base, open("app.bin", "rb").read(), verify=True)
probe.debug().run()
Parts whose pack declares vendor connect steps list as NEEDS_CONNECT_STEPS: the SDK does not
run those steps, so pass them in confirmed_connect_steps only once the user has accepted that.
Only the STM32H503 is verified on hardware so far. The guide covers the rest:
https://binhollc.github.io/pycosmicsdk/guides/debugprobe.html.
Linux
The adapters and the Atira need no driver on any platform. On Linux, add udev rules so they are
reachable without root (82fc Supernova, 82fd Pulsar, 8347 Atira). Without it, list_devices() still finds the adapter but
its serial number comes back empty.
# /etc/udev/rules.d/65-binho.rules
SUBSYSTEM=="hidraw", ATTRS{idVendor}=="1fc9", ATTRS{idProduct}=="82fc", MODE="0660", GROUP="plugdev"
SUBSYSTEM=="usb", ATTRS{idVendor}=="1fc9", ATTRS{idProduct}=="82fc", MODE="0660", GROUP="plugdev"
SUBSYSTEM=="hidraw", ATTRS{idVendor}=="1fc9", ATTRS{idProduct}=="82fd", MODE="0660", GROUP="plugdev"
SUBSYSTEM=="usb", ATTRS{idVendor}=="1fc9", ATTRS{idProduct}=="82fd", MODE="0660", GROUP="plugdev"
SUBSYSTEM=="hidraw", ATTRS{idVendor}=="1fc9", ATTRS{idProduct}=="8347", MODE="0660", GROUP="plugdev"
SUBSYSTEM=="usb", ATTRS{idVendor}=="1fc9", ATTRS{idProduct}=="8347", MODE="0660", GROUP="plugdev"
Then run sudo udevadm control --reload && sudo udevadm trigger and add your user to plugdev.
Versions and firmware
MAJOR.MINOR follows the CosmicSDK release embedded in the wheel: pycosmicsdk 1.6 carries
CosmicSDK 1.6. Features that need newer adapter firmware say so, and older firmware answers
them with FW_UNSUPPORTED_COMMAND rather than failing silently. Update the adapter's firmware
from Mission Control.
Support
- Product pages and Mission Control: https://binho.io
- Support: https://support.binho.io · support@binho.io
Metadata
Release files for pycosmicsdk 1.9.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 27.2 MB
Release files / pycosmicsdk-1.9.1-cp314-cp314-win_amd64.whl
| Download URL | pycosmicsdk-1.9.1-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 1.8 MB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
474e2a97b55b2fa8f7d532519e44679772e49be936969ad78b69c1d47763dd0b
|
|
BLAKE2b-256 checksum How to use checksums |
60fca3e15af58882641d528db7e68e30788e769b40b6310d3a067499867fc0e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logRelease files / pycosmicsdk-1.9.1-cp314-cp314-manylinux_2_28_x86_64.whl
| Download URL | pycosmicsdk-1.9.1-cp314-cp314-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 2.3 MB |
| Tags | CPython 3.14 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
719fd37fbef37d91017c1e16d3b1705253df394ce7d7a36b078a5e36f2ed87f3
|
|
BLAKE2b-256 checksum How to use checksums |
aa4dee25a368b2b5b7559075be2dc059812edac4a584e7bf98c0c44b3772a727
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logRelease files / pycosmicsdk-1.9.1-cp314-cp314-macosx_11_0_arm64.whl
| Download URL | pycosmicsdk-1.9.1-cp314-cp314-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.14 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
a1bfea9e9105ce965963bdb7466a9bf86708cab05c107b44fb6a1c7faf7e114f
|
|
BLAKE2b-256 checksum How to use checksums |
52005c2feb1295259265d69c3d9cb30f891a25d2973a4bf1ed9603a6ae9e6702
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logRelease files / pycosmicsdk-1.9.1-cp313-cp313-win_amd64.whl
| Download URL | pycosmicsdk-1.9.1-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 1.8 MB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
3928c724f98a443d3621ffcab89d2b35d6764f61ee71cf354b82a64bcc4a1148
|
|
BLAKE2b-256 checksum How to use checksums |
ebe8d6184d70f8dd20aecc2e7a0641d7d5046dfa0714b47e915afbb5d63d82e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logRelease files / pycosmicsdk-1.9.1-cp313-cp313-manylinux_2_28_x86_64.whl
| Download URL | pycosmicsdk-1.9.1-cp313-cp313-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 2.3 MB |
| Tags | CPython 3.13 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
7599f6f026ac1dc98dbea14877d54ed65b2c687fc2715c5983b9b985006fbfd2
|
|
BLAKE2b-256 checksum How to use checksums |
f4a40f188cd297c5933b026ed4f577791f168e71ac50321e9d902e4eb3879b20
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logRelease files / pycosmicsdk-1.9.1-cp313-cp313-macosx_11_0_arm64.whl
| Download URL | pycosmicsdk-1.9.1-cp313-cp313-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.13 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
871b27fbd627a2d6a69f0260396a7cdc1ee7b91713e6a27a4af073f68b64de51
|
|
BLAKE2b-256 checksum How to use checksums |
ce48f16b6fe6560953c5236e9bc5fed3d33b399990c85f6334f26861e9323d5f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logRelease files / pycosmicsdk-1.9.1-cp312-cp312-win_amd64.whl
| Download URL | pycosmicsdk-1.9.1-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 1.8 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
a83499db5c574252e01a93a47eaf22b9a57675f3c8211987f81de05debf31e4f
|
|
BLAKE2b-256 checksum How to use checksums |
986f779b7ba89ab3ef363a32da0bfaf617bafe078bc6198225a3d9cbaf4ae3aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logRelease files / pycosmicsdk-1.9.1-cp312-cp312-manylinux_2_28_x86_64.whl
| Download URL | pycosmicsdk-1.9.1-cp312-cp312-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 2.3 MB |
| Tags | CPython 3.12 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
2ca4a22d41779e46dd4396cc2ebd99fe13076b8cf9d2a7e0e6ab61651512316d
|
|
BLAKE2b-256 checksum How to use checksums |
2552d33394dbe0146a0bd782007c60d879921632e516296e6bed0d67186c7aa0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logRelease files / pycosmicsdk-1.9.1-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | pycosmicsdk-1.9.1-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
1b6864d0e215a0148ea7b978a7128d495e4d019a525d22d3da3600a1ff309032
|
|
BLAKE2b-256 checksum How to use checksums |
8cbae7773916f8ad94e769877443cd4f02a4dc5cb608d65bfb55bc62d7494386
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logRelease files / pycosmicsdk-1.9.1-cp311-cp311-win_amd64.whl
| Download URL | pycosmicsdk-1.9.1-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 1.8 MB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
73859d0ef5aed1571f4f0a36fa5e74028a2dca0746ca1200028e6b74752afc27
|
|
BLAKE2b-256 checksum How to use checksums |
46a1d5200efc2126adc23ebec8da523f78fd874d024f90110b05dd11456dcdd7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logRelease files / pycosmicsdk-1.9.1-cp311-cp311-manylinux_2_28_x86_64.whl
| Download URL | pycosmicsdk-1.9.1-cp311-cp311-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 2.3 MB |
| Tags | CPython 3.11 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
b334fe783f814be260906b0ae0500d728aed2a37392b874f0192d43b05beb9ca
|
|
BLAKE2b-256 checksum How to use checksums |
f17c3123b98eae8b9eb4e8a8177f83aaffea83fbd82f2300a655936b06a2fb46
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logRelease files / pycosmicsdk-1.9.1-cp311-cp311-macosx_11_0_arm64.whl
| Download URL | pycosmicsdk-1.9.1-cp311-cp311-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.11 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
db535bf40deecef4eb9155dfe6e22b2d2256fc808719ee0fdc33955bfa32e024
|
|
BLAKE2b-256 checksum How to use checksums |
d7791a9794c1542c3cac6bb4547bfc8fe51eb71f592c125919e77a20d71e3cd6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logRelease files / pycosmicsdk-1.9.1-cp310-cp310-win_amd64.whl
| Download URL | pycosmicsdk-1.9.1-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 1.8 MB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
b6940a75283697381c8dde5dc9ee8b5e8def9143d994d25e2590b89d9d236cb8
|
|
BLAKE2b-256 checksum How to use checksums |
77be8e653f21367a5c6bec77e9180c697b5335cda9ccdb367e0e520e054fb6d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logRelease files / pycosmicsdk-1.9.1-cp310-cp310-manylinux_2_28_x86_64.whl
| Download URL | pycosmicsdk-1.9.1-cp310-cp310-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 2.3 MB |
| Tags | CPython 3.10 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
5a67296fff214a8957d0192f365c64a0fb99afea1830cd84ccd326ed9bb05750
|
|
BLAKE2b-256 checksum How to use checksums |
d31fdb789940fed34f01d1f4ddc9baf4648645970d89a52df5a3fd4297ab6207
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logRelease files / pycosmicsdk-1.9.1-cp310-cp310-macosx_11_0_arm64.whl
| Download URL | pycosmicsdk-1.9.1-cp310-cp310-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.10 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
044c48bf937c103db14931482a592cbff5cf4ed28d0b6d9a030e66f8694b0fe6
|
|
BLAKE2b-256 checksum How to use checksums |
47ae8746fa3330aa4dd089854fb0477dc94cafbd77d05a0cd05a5f1999dd5c39
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logSecurity for pycosmicsdk 1.9.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 15 files in this release have been uploaded with provenance metadata.
Attestation for pycosmicsdk-1.9.1-cp314-cp314-win_amd64.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.