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))
Metadata
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 | Actions Reset |
|---|---|---|---|---|
| sigrok-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for sigrok-0.1.2-py3-none-any.whl |
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
|
Security for sigrok 0.1.2
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.