Skip to main content

harp-behavior

The Python interface for the Harp Behavior device. It carries the register classes for the device, the payload and enumeration types those registers use, and a REGISTER_MAP pairing every address with its register.

Installation

pip install harp-behavior

Reading and writing registers

Register classes are passed to read and write on an open device transport, such as the serial transport in Harp Python.

from harp import serial
from harp.device import behavior, client

SERIAL_PORT = "/dev/ttyUSB0"  # or "COMx" in Windows, where "x" is the serial port number

with serial.open_device(client.Device, port=SERIAL_PORT) as device:
    print("device:", behavior.DEVICE_NAME, "WhoAmI:", behavior.WHO_AM_I)
    print("analog data:", device.read(behavior.AnalogData).payload)

open_dataset in harp.data takes this module as its second argument, and decodes recorded data through the same register classes.

Feedback and contributing

harp-behavior is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.

Metadata

Release files for harp-behavior 3.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for harp-behavior 3.4.0
File Size Uploaded Provenance Actions
harp_behavior-3.4.0.tar.gz 37.8 kB Without provenance Details for harp_behavior-3.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for harp-behavior 3.4.0
File Interpreter ABI Platform Actions
harp_behavior-3.4.0-py3-none-any.whl Python 3 none any Details for harp_behavior-3.4.0-py3-none-any.whl

Total release size: 46.4 kB

Release files / harp_behavior-3.4.0.tar.gz

Download URL harp_behavior-3.4.0.tar.gz
Size 37.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d7e41f7cbe3857f2bd45121ea9e1fb93f4afdf4938adbac36319d81b8dbea68b
BLAKE2b-256 checksum
How to use checksums
d5f5818f8c7abd0991d6e2942627788962cce0a321307573dca73b5a37312f23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / harp_behavior-3.4.0-py3-none-any.whl

Download URL harp_behavior-3.4.0-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0167b9f0900ef77fec66205830930f3bdaea55a1f5a2860eda8c7dc53778a6ff
BLAKE2b-256 checksum
How to use checksums
5b49091fd6812b1dcef0bf2d706508d2984841ba7c947aa7752ba900190f7f58
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for harp-behavior 3.4.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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page