Python SDK for Unitly — searchable operational history for serialised hardware units
Project description
Unitly Python SDK
Track hardware units through manufacturing with a searchable event timeline.
Install
pip install unitly
That's it — no extra index URLs needed.
Quick start
from unitly import Unitly
client = Unitly() # reads UNITLY_API_KEY from env
# Register a unit
client.units.create(
"SN-001",
name="Proto board v2",
hardware_revision="rev-c",
firmware_version="1.2.3",
)
# Push a test event
client.events.create(
"SN-001",
event_type="test_pass",
description="ATE pass — all DUTs green",
metadata={"station": "ATE-01", "temp_c": 25},
)
# Get the full timeline
timeline = client.events.list(serial_number="SN-001")
for e in timeline["events"]:
print(e["event_type"], e["created_at"])
CLI
pip install unitly also installs the unitly command:
export UNITLY_API_KEY=your-key-here
unitly register SN-001 --hw rev-c --fw 1.2.3 --name "Proto board v2"
unitly push SN-001 test_pass --desc "ATE pass" --data '{"station":"ATE-01"}'
unitly timeline SN-001
unitly units
unitly keys list
Environment variables
| Variable | Default | Description |
|---|---|---|
UNITLY_API_KEY |
(required) | Your API key |
UNITLY_API_URL |
https://unitly.polsia.app/api |
API base URL |
Docs
Full API docs: https://unitly.polsia.app/docs
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
unitly-0.1.0.tar.gz
(7.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file unitly-0.1.0.tar.gz.
File metadata
- Download URL: unitly-0.1.0.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dbffb5bced6f7f82cd5a23915d7494b579314db0014fbc86e0b9a4d197aa83ed
|
|
| MD5 |
8d7f2c79d7b187093a558eb7cc82a86b
|
|
| BLAKE2b-256 |
06ed7901c5d501b3ce57ab248aed5a063378332b0ad7a76d0e0c63a73aa00c68
|
File details
Details for the file unitly-0.1.0-py3-none-any.whl.
File metadata
- Download URL: unitly-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eba1667c887367777eb39934c5647cce7f21155c51519fb3ba8727384b86c945
|
|
| MD5 |
b4a2695c9d4ff8c191da2e46109ced56
|
|
| BLAKE2b-256 |
c6c1a3172ab018e3d99b89dee0835862a21b4a0fd987edb75333ac26f2a57fa6
|