spi-repl
Pure python SPI REPL (Read-Evaluate-Print-Loop) which allows you to interact with SPI devices from the command line.
- 0 dependencies, only python.
- Python 3.7+.
- Windows is not supported.
Installation
pip install spi-repl
Example:
$ spi-repl --help
usage: spi-repl [-h] [--device DEVICE] [--speed SPEED] [--bits-per-word BITS_PER_WORD] [--phase] [--polarity] [--cs-high] [--lsb-first] [--three-wire] [--loop] [--no-cs] [--ready]
SPI REPL
options:
-h, --help show this help message and exit
--device DEVICE SPI device. Default: /dev/spidev0.0
--speed SPEED SPI speed. Default: 1000000
--bits-per-word BITS_PER_WORD
SPI bits per word. Default: 8
--phase SPI phase. Default: False
--polarity SPI polarity. Default: False
--cs-high SPI chip select active level. Default: False
--lsb-first SPI bit order. Default: False
--three-wire SPI 3-wire mode. Default: False
--loop SPI loopback mode. Default: False
--no-cs SPI no chip select. Default: False
--ready SPI slave pulls low to pause. Default: False
$ spi-repl --speed 5000000
SPI device: /dev/spidev0.0 speed: 5000000 bits_per_word: 8
now enter hex strings to send to the device
/dev/spidev0.0 <<< 0100
/dev/spidev0.0 >>> 0008
/dev/spidev0.0 <<< 010000000000000000000000000
expected hex string ('00112233445566778899aabbccddeeff')
Metadata
Release files for spi-repl 0.1.3
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 |
|---|---|---|---|---|
| spi_repl-0.1.3.tar.gz | 6.5 kB | Without provenance | Details for spi_repl-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| spi_repl-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for spi_repl-0.1.3-py3-none-any.whl |
Total release size: 14.5 kB
Release files / spi_repl-0.1.3.tar.gz
| Download URL | spi_repl-0.1.3.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3b2223d0f29480b51cd08a5ab04d994d107f08f1bbc59d3acfe20ec8e3d7a776
|
|
BLAKE2b-256 checksum How to use checksums |
f34cd00e4eea71a94676f1fe0d98822e9a51af748043cc3cac16d52c0cc58051
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Release files / spi_repl-0.1.3-py3-none-any.whl
| Download URL | spi_repl-0.1.3-py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
75877bb044897cbc0e3b4fd00d9490f9e789e91a9cf2a89deaf98be8d7ed3ecd
|
|
BLAKE2b-256 checksum How to use checksums |
69990cd1f3da8c17e369140570341d85ccd87bae0589cad820f9586afdf91600
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.19
|
Security for spi-repl 0.1.3
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.