glider-harp
Harp binary-protocol support for GLIDER, a laboratory automation platform.
Harp is an open hardware standard for behavioural neuroscience instruments — lickometers, behaviour boards, olfactometers — that speak a common binary protocol over a serial link. This package lets GLIDER record from them alongside its cameras and its other hardware.
Install
pip install glider-harp
Or, from GLIDER 1.1 onwards, through Tools → Plugins… in the application itself.
Requires Python 3.11–3.13 and an existing GLIDER installation. GLIDER is deliberately not declared as a dependency: this package is installed into an environment that already has it.
What it provides
| Entry point | Kind | Name |
|---|---|---|
glider.driver |
Board driver | harp |
glider.device |
Device type | HarpDevice |
Add a Harp board in GLIDER's hardware map, attach a device to it, and its registers appear as columns in the recording CSV.
Recorded columns
A device contributes several columns, prefixed with its GLIDER device id. A
LicketySplit configured as harp1 produces:
| Column | Type | Meaning |
|---|---|---|
harp1:lick_state |
0/1 | Register value at poll time |
harp1:lick_count |
int | Events since the previous poll, cleared on read |
harp1:lick_last_ms |
float | Device timestamp of the most recent event, ms |
Sub-columns are joined with _ rather than :, because the recorder splits the
device prefix off with a single partition(":") — a colon inside a device's own
column name would be ambiguous.
Timing
GLIDER keeps the master clock. Harp devices carry their own hardware timestamps, and this package records them alongside GLIDER's row timestamps rather than in place of them. It does not adopt Harp's clock, and it does not attempt to synchronise GLIDER to it.
The device timestamp is seconds + micros × 32 µs, as the Harp protocol
defines. Intervals between events on one device are reliable. Aligning
*_last_ms against another clock means knowing what epoch the device is
counting from, which is device- and configuration-dependent — check your
device's documentation before relying on it.
Supported devices
The package ships one profile:
- LicketySplit lickometer (
WhoAmI1400)
Other Harp devices work by supplying a profile — a small JSON file naming the
device's registers and which of them should be recorded. Core registers
(WhoAmI, hardware and firmware versions, TimestampSecond, OperationControl,
ClockConfig) are never recorded as data columns.
Registers whose values are signed, floating-point, or arrays are not decoded correctly yet; the shipped profile does not use them. A profile relying on those types will record wrong numbers rather than failing, so check the register types before adding one.
Status and limitations
This package has never been run against real Harp hardware. Everything in
its test suite exercises MockHarpDevice, which fakes the serial port. The frame
codec, the reader thread, register derivation, and the recording path are all
covered; what is unverified is every assumption about how a physical device
behaves — how quickly it answers, what it does on a mid-session unplug, and
whether the shipped LicketySplit profile matches the firmware you have.
Treat a first run as a bring-up exercise, not a deployment.
Known gaps beyond that:
- Signed, float and array register types, as above.
- Devices boot in Standby and emit no events until set Active; the driver does this and reads the register back to confirm, but only that path is tested.
Licence
MIT — see LICENSE.
Links
- GLIDER: https://github.com/LaingLab/glider
- Harp technology: https://harp-tech.org/
- Issues: https://github.com/LaingLab/glider/issues
Metadata
Release files for glider-harp 0.1.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 | Actions |
|---|---|---|---|---|
| glider_harp-0.1.0.tar.gz | 103.3 kB | With provenance | Details for glider_harp-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| glider_harp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for glider_harp-0.1.0-py3-none-any.whl |
Total release size: 165.3 kB
Release files / glider_harp-0.1.0.tar.gz
| Download URL | glider_harp-0.1.0.tar.gz |
|---|---|
| Size | 103.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c414f4dfbe00e01adb1c082f18d3aeded025bfb56d13d8b08f77493251bdb533
|
|
BLAKE2b-256 checksum How to use checksums |
90f8f958a990bf769e6e4b73092045f1428272755dc92b41bb10fef95f1f7a8e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 18, 2026.
Transparency logRelease files / glider_harp-0.1.0-py3-none-any.whl
| Download URL | glider_harp-0.1.0-py3-none-any.whl |
|---|---|
| Size | 62.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9db1d2049e8630e90faf8edeafed3bd2cd590a9d7e26a16d46b771f4b19aa728
|
|
BLAKE2b-256 checksum How to use checksums |
31d48f6d8d9f1ac49f74c4242f3cb3e4670944a66486b96d1866990b45c1b188
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 18, 2026.
Transparency logSecurity for glider-harp 0.1.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for glider_harp-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 18, 2026.
Transparency logA 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.