Python-API for libsigrok
Project description
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))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
sigrok-0.1.2-py3-none-any.whl
(10.3 MB
view details)
File details
Details for the file sigrok-0.1.2-py3-none-any.whl.
File metadata
- Download URL: sigrok-0.1.2-py3-none-any.whl
- Upload date:
- Size: 10.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af234e3d3e4e6d320ef4424cc8265e780993a028bc5705b6db2a2ba1a5cbfc13
|
|
| MD5 |
840fa0e681338c893f2af97142f1dfc3
|
|
| BLAKE2b-256 |
1d7c4cdeb6023f18f870ebb64fc77801eedbbd5315b1942ac0227bb171ebfc77
|