Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

harp.loadcells

PyPI

This is a generated Harp device Python interface that interacts with the Harp protocol.

Installation

You can install the package using uv or pip:

uv add harp.loadcells

or

pip install harp.loadcells

Usage example

from harp.protocol import OperationMode
from harp.devices.loadcells import LoadCells

# Example usage of the LoadCells device
with LoadCells("/dev/ttyUSB0") as device: # For Windows, use "COM8" or similar
    device.info()

    # Set the device to active mode
    device.set_mode(OperationMode.ACTIVE)

    # Get the events
    try:
        while True:
            for event in device.get_events():
                # Do what you need with the event
                print(event.payload)
    except KeyboardInterrupt:
        # Capture Ctrl+C to exit gracefully
        print("Exiting...")
    finally:
        # Do what you need to do to clean up. Disconnect is automatically called with the "with" statement.
        pass

Metadata

Release files for harp-loadcells 0.1.0a4

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-loadcells 0.1.0a4
File Size Uploaded
harp_loadcells-0.1.0a4.tar.gz 8.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for harp-loadcells 0.1.0a4
File Interpreter ABI Platform
harp_loadcells-0.1.0a4-py3-none-any.whl Python 3 none any Details

Total release size: 17.4 kB

Release files / harp_loadcells-0.1.0a4.tar.gz

Download URL harp_loadcells-0.1.0a4.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d038cf8d3cedd0f0a858fe0ab10b5e3d4262ae1d164bbbb205d0afd4b1c0f12e
BLAKE2b-256 checksum
How to use checksums
5fcbcef6ecaafa8aae6801aca37c50408062e77eb738b28560d2d2e7df27f1d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.6

Release files / harp_loadcells-0.1.0a4-py3-none-any.whl

Download URL harp_loadcells-0.1.0a4-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8cb6e7022c8ae5e688dc03b2428fa478be511db34342ea5bd2b754ffd44c8b8b
BLAKE2b-256 checksum
How to use checksums
d46e5918dc56a09f230f926a6489360407a1a7e3af168578cd6bdd8f49d33f8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.6
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