Skip to main content

harp-soundcard

The Python interface for the Harp Sound Card 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-soundcard

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 client, soundcard

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:", soundcard.DEVICE_NAME, "WhoAmI:", soundcard.WHO_AM_I)
    print("digital inputs:", device.read(soundcard.InputState).payload)

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

Uploading sounds to the device is not part of this package. Sounds are uploaded with the Sound Card app or with the UpdateSoundWaveform operator in the Harp.SoundCard Bonsai package.

Feedback and contributing

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

Metadata

Release files for harp-soundcard 3.0.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-soundcard 3.0.0
File Size Uploaded Provenance Actions
harp_soundcard-3.0.0.tar.gz 39.0 kB Without provenance Details for harp_soundcard-3.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for harp-soundcard 3.0.0
File Interpreter ABI Platform Actions
harp_soundcard-3.0.0-py3-none-any.whl Python 3 none any Details for harp_soundcard-3.0.0-py3-none-any.whl

Total release size: 45.5 kB

Release files / harp_soundcard-3.0.0.tar.gz

Download URL harp_soundcard-3.0.0.tar.gz
Size 39.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e2eb7bda8d61bd6d6f233f201fd399cdf97498c78d4077b6f9e97dcf9abf107d
BLAKE2b-256 checksum
How to use checksums
60e0d7c2e6ff30cb3f0846abbba2c5d891b125e5fa45e17f3d70e4e559741a86
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_soundcard-3.0.0-py3-none-any.whl

Download URL harp_soundcard-3.0.0-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7a6f8c3048034844d846e91d078928dab2743effb8715bcd6cc345555060df40
BLAKE2b-256 checksum
How to use checksums
eeec6803f0350802def08280c59d1a52d6b54dbc47051a3482c302bf8a906512
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-soundcard 3.0.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