harp-serial
Serial transport for harp-device. Provides SerialTransport and the open_device factory, which pairs a device module or a Device class with a serial port. This is the package that pulls in pyserial.
Usage
Like the builtin open, the returned device is connected and ready. Use it in a with block for guaranteed cleanup:
from harp import serial
from harp.device import behavior, core
# Use "COMx" on Windows, "/dev/ttyUSBx" on Linux.
with serial.open_device(behavior, port="COM3") as device:
print(device.read(core.WhoAmI).payload) # a core register
print(device.read(behavior.AnalogData).payload) # a device register
Passing a device module validates the device identity on open. Pass a Device subclass instead to preserve its own type, or omit the argument entirely for schema-free access, which skips the identity check.
harp-serial is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.
Metadata
Release files for harp-serial 0.5.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 | |
|---|---|---|---|---|
| harp_serial-0.5.0.tar.gz | 4.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| harp_serial-0.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.7 kB
Release files / harp_serial-0.5.0.tar.gz
| Download URL | harp_serial-0.5.0.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
192d202d6e2ca48923ada2d185c8a68d90dce47843591d251fa2c793d1e2a713
|
|
BLAKE2b-256 checksum How to use checksums |
5d7d2a8a97edc3c63258d77d124c77f4fc7ec685d5c80884944c6a05bffc0c35
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.6 {"installer":{"name":"uv","version":"0.12.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / harp_serial-0.5.0-py3-none-any.whl
| Download URL | harp_serial-0.5.0-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e1fd7d1b547d2e470e5d3dfff9dbcbfdf445b8b1ba323cc774b071b9dc4cc280
|
|
BLAKE2b-256 checksum How to use checksums |
ee5fa995eb0e17064690d72c90bb2af85224ea37f9162b1ce076a2752953810a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.6 {"installer":{"name":"uv","version":"0.12.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for harp-serial 0.5.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.