siliconrig
Python SDK for SiliconRig: remote access to real embedded boards.
Use it in scripts, automation, or as a pytest plugin for hardware-in-the-loop testing.
Install
pip install siliconrig
Quick start
from siliconrig import Client
client = Client()
with client.session(board="esp32-s3") as session:
session.flash("firmware.bin")
session.serial.expect("Ready", timeout=10)
session.serial.send("status\n")
print(session.serial.read_until("OK", timeout=5))
Or use the Board shorthand:
from siliconrig import Board
with Board("esp32-s3", firmware="build/app.bin") as board:
board.expect("System ready", timeout=5)
board.send("gpio set 4 1\n")
board.expect("GPIO4=HIGH", timeout=2)
Firmware formats
flash() accepts a raw .bin (all boards), a .uf2 (rp2350), or, for STM32
boards, an .elf or Intel .hex, which SiliconRig converts to a raw image
server-side before flashing. Hand it your build's ELF directly:
with Board("stm32-h753", firmware="build/firmware.elf") as board:
board.expect("All tests passed", timeout=30)
pytest plugin
The package includes a pytest plugin that registers automatically. Use it with custom fixtures:
import pytest
from siliconrig import Board
@pytest.fixture
def board():
with Board("esp32-s3", firmware="build/app.bin") as b:
yield b
def test_boot_ok(board):
assert board.expect("System ready", timeout=5)
Or use the built-in siliconrig_board fixture via CLI options:
pytest --siliconrig-board esp32-s3 --siliconrig-firmware build/app.bin tests/hil/
Authentication
Set your API key via environment variable:
export SRIG_API_KEY=key_...
Or pass it directly:
client = Client(api_key="key_...")
Documentation
Metadata
Release files for siliconrig 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| siliconrig-0.2.3.tar.gz | 15.4 kB | With provenance | Details for siliconrig-0.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| siliconrig-0.2.3-py3-none-any.whl | Python 3 | none | any | Details for siliconrig-0.2.3-py3-none-any.whl |
Total release size: 30.2 kB
Release files / siliconrig-0.2.3.tar.gz
| Download URL | siliconrig-0.2.3.tar.gz |
|---|---|
| Size | 15.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
48bd21e45e586f868e9ed24a2fe827d994ba6e3969bbf3cda62fffdd0e47f542
|
|
BLAKE2b-256 checksum How to use checksums |
89de8d8393b533af1b99c47151a86d6a189a186defaa410f123bf53892f82aa6
|
| 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 Nov 13, 2026.
Transparency logRelease files / siliconrig-0.2.3-py3-none-any.whl
| Download URL | siliconrig-0.2.3-py3-none-any.whl |
|---|---|
| Size | 14.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
02ce7564d226380c13f6bfd92e49d0aeeb7b201328cdd1a677a2da5de32a90c4
|
|
BLAKE2b-256 checksum How to use checksums |
b9a843643b0b46c7c2936b8d7ce4c76b5319b1da1e59b289b90df07eba68b508
|
| 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 Nov 13, 2026.
Transparency logSecurity for siliconrig 0.2.3
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
Both files in this release have been uploaded with provenance metadata.
Attestation for siliconrig-0.2.3.tar.gz
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 Nov 13, 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.