Python Bindings for Digilent WaveForms API
DwfPy is a Python package that allows you to access Digilent WaveForms devices via Python. It provides a low-level API with complete access to the Digilent WaveForms API, and also a simple but powerful high-level API, which allows you to configure WaveForms devices with a single statement.
For instance, to output a 1kHz sine-wave on an Analog Discovery, you can simply write:
import dwfpy as dwf
with dwf.Device() as device:
print('Generating a 1kHz sine wave on WaveGen channel 1...')
device.analog_output['ch1'].setup('sine', frequency=1e3, amplitude=1, start=True)
input('Press Enter key to exit.')
Features
- Pythonic abstraction of Digilent Waveforms API.
- Low-level API with complete access to the Digilent Waveforms API.
- Powerful high-level API that supports one-line configuration statements.
- Supports all sub-modules, such as oscilloscope, arbitrary waveform generator, logic analyzer, pattern generator, digital I/O, and power supplies.
- Works with all WaveForms devices, such as the Analog Discovery 2, the Analog Discovery 3, or the Digital Discovery.
Installing DwfPy
You can install the DwfPy package from PyPI using pip:
pip install dwfpy
In order to use the DwfPy package, you need Python 3.8 or higher.
As DwfPy builds on top of the WaveForms API, you need to install the WaveForms software, which includes the required runtime components to access the WaveForms devices.
The source code for the DwfPy package can be found at GitHub at https://github.com/mariusgreuel/dwfpy.
Examples
You can find Python examples using DwfPy in the dwfpy GitHub repository at https://github.com/mariusgreuel/dwfpy/tree/main/examples.
Documentation
You can find the DwfPy user's guide at https://dwfpy.readthedocs.io/.
Detailed information about the Digilent Waveforms API is available from the Digilent WaveForms SDK Reference Manual.
Getting help
For issues with DwfPy, please visit the dwfpy issue tracker.
Metadata
Release files for dwfpy 1.2.0
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 |
|---|---|---|---|---|
| dwfpy-1.2.0.tar.gz | 52.4 kB | Without provenance | Details for dwfpy-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dwfpy-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for dwfpy-1.2.0-py3-none-any.whl |
Total release size: 112.0 kB
Release files / dwfpy-1.2.0.tar.gz
| Download URL | dwfpy-1.2.0.tar.gz |
|---|---|
| Size | 52.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
83f2667700c84804cdeccace593442a6d49a0cd85ece88772fdcdfb9f3c331c9
|
|
BLAKE2b-256 checksum How to use checksums |
ef50b8d7789d07b18fbff278311e2060070453d95c555d43913ef5574cb1e033
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / dwfpy-1.2.0-py3-none-any.whl
| Download URL | dwfpy-1.2.0-py3-none-any.whl |
|---|---|
| Size | 59.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fc313345bc1007f1e3c9ecef2ec9cc44713933b277e062fa0458bbf38c5d9c4a
|
|
BLAKE2b-256 checksum How to use checksums |
6a9fcfdfd28f507421b59db9cfd52e307bdbb96b948877132d9487d1741b7014
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Security for dwfpy 1.2.0
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.