python-sigrok
Python-API for libsigrok
Installation
pip install sigrok
Requirements
Ubuntu
apt install libsigrok4 libsigrok-dev
Fedora
dnf install libsigrok libsigrok-devel
macOS
brew install libsigrok
Windows
pre-built libsigrok dlls are shipped with this package.
Usage
from sigrok import Sigrok, ConfigKey
with (
Sigrok() as sr,
sr.get_driver("demo") as driver,
driver.get_device() as device,
):
device.set_config_uint64(ConfigKey.SR_CONF_SAMPLERATE, 1_000)
device.set_config_uint64(ConfigKey.SR_CONF_LIMIT_SAMPLES, 10)
device.enable_channels("D0")
with sr.session(devices=[device]) as session:
print(session.next_packet(timeout=1.0))
print(session.next_packet(timeout=1.0))
print(session.next_packet(timeout=1.0))
Release files for sigrok 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sigrok-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Release files / sigrok-0.1.2-py3-none-any.whl
| Download URL | sigrok-0.1.2-py3-none-any.whl |
|---|---|
| Size | 10.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
af234e3d3e4e6d320ef4424cc8265e780993a028bc5705b6db2a2ba1a5cbfc13
|
|
BLAKE2b-256 checksum How to use checksums |
1d7c4cdeb6023f18f870ebb64fc77801eedbbd5315b1942ac0227bb171ebfc77
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|