SmartWaveAPI
A python API for the SmartWave interface.
Installation
- This package requires python version 3.
- To install this package, run the following command:
pip install SmartWaveAPI
Usage
It is recommended to use the with..as pattern to implicitly call cleanup functions
when resources of the SmartWave device are no longer needed.
Basic I2C script
from SmartWaveAPI import SmartWave
with SmartWave().connect() as sw:
with sw.createI2CConfig() as i2c:
# write 0xaa, 0x55 to device with address 0x20
i2c.write(0x20, bytes([0xaa, 0x55]))
# read 2 bytes from device with address 0x20
i2c.read(0x20, 2)
# write value 0x0f to register 0xaa of device at 0x20
i2c.writeRegister(0x20, 0xaa.to_bytes(1, "big"), 0x0f.to_bytes(1, "big"))
# read value of 1-byte register 0xaa of device at 0x20
i2c.readRegister(0x20, 0xaa.to_bytes(1, "big"), 1)
Basic SPI script
from SmartWaveAPI import SmartWave
with SmartWave().connect() as sw:
with sw.createSPIConfig() as spi:
# write 0xaa, 0x55 via SPI and read simultaneously
spi.write([0xaa, 0x55])
Documentation
Further documentation can be found on our documentation page.
Metadata
Release files for SmartWaveAPI 2.2.1
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 |
|---|---|---|---|---|
| smartwaveapi-2.2.1.tar.gz | 628.2 kB | Without provenance | Details for smartwaveapi-2.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| smartwaveapi-2.2.1-py3-none-any.whl | Python 3 | none | any | Details for smartwaveapi-2.2.1-py3-none-any.whl |
Total release size: 1.3 MB
Release files / smartwaveapi-2.2.1.tar.gz
| Download URL | smartwaveapi-2.2.1.tar.gz |
|---|---|
| Size | 628.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
20be9e4229a47de2d7f7dc70c65637ce0b32a6b5bf8aa3412497ad08f327f957
|
|
BLAKE2b-256 checksum How to use checksums |
a18547e77636b2eeed155ceec6dc434bea9aa65442d93d4820f14d2dc9780779
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.13.2
|
Release files / smartwaveapi-2.2.1-py3-none-any.whl
| Download URL | smartwaveapi-2.2.1-py3-none-any.whl |
|---|---|
| Size | 628.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6b7661eb4ac27025108d500045e053d07e10afa7feafde199b2cbbc36507b072
|
|
BLAKE2b-256 checksum How to use checksums |
b58930caed8eff5f20a72d0243ebe7d4328b709d071bad0bc4a9e45a187a4d14
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.13.2
|
Security for SmartWaveAPI 2.2.1
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.