scirodev
Host-side companion to the PeakHub firmware: typed API stubs for the sciro
namespace that PeakHub programs import, plus the hub tooling (it depends on
pybricksdev, so scirodev run ble prog.py works exactly like pybricksdev).
pip install scirodev # from PyPI
pip install "scirodev @ git+https://github.com/sciurus-robotics/scirodev.git@v0.1.0"
pipx install scirodev # just the CLI, in its own venv
Hacking on it:
pip install -e .
Then your IDE/type checker knows these, which the upstream pybricks stubs don't:
from sciro.parameters import Port # Port.A .. Port.H (PeakHub has 8 ports)
from sciro.iodevices import PUMPDevice # generic PUMP device access
from sciro.pump import FloorPro # PUMP devices (LP-FloorPro, ...)
from sciro.hubs import PeakHub # hub class incl. display.device()
hub = PeakHub()
fp = FloorPro(Port.G)
cog_dark, cog_bright, brightness, darkness, mask, calibrating = fp.line.read()
hub.display.device(fp, brightness=50) # mirror the sensor's LED strip on the 5x5
Full demo programs for the LP FloorPro (both for LEGO hubs and the PeakHub) live in
sciurus-robotics/FloorPro-CodeDemos;
examples/ here stays minimal.
On the hub these modules are frozen into the PeakHub firmware:
sciro.parameters and sciro.iodevices re-export the same runtime objects as
their pybricks.* counterparts, so sciro.parameters.Port is pybricks.parameters.Port — the stubs only add what the IDE is missing. The
stub files here mirror the frozen modules; a release of this package matches
the PeakHub firmware of the same date.
Releasing
Bump version in pyproject.toml, commit, tag vX.Y.Z and push the tag. The
GitHub workflow builds, type-checks and publishes to PyPI via Trusted Publishing
(configured on pypi.org: owner sciurus-robotics, repo scirodev, workflow
publish.yml, environment pypi).
Release files for scirodev 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| scirodev-0.3.1.tar.gz | 10.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| scirodev-0.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 22.3 kB
Release files / scirodev-0.3.1.tar.gz
| Download URL | scirodev-0.3.1.tar.gz |
|---|---|
| Size | 10.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8ff545cec1d7c6336e6a78d91451120ba141dc12f96e5a5ee1dfc2e10f4d2dcc
|
|
BLAKE2b-256 checksum How to use checksums |
0c975b839ab8741926abf44f13d9fa68d7dd1faa0e71c4b0f6119ecb7d90c4f2
|
| 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 Sep 21, 2026.
Transparency logRelease files / scirodev-0.3.1-py3-none-any.whl
| Download URL | scirodev-0.3.1-py3-none-any.whl |
|---|---|
| Size | 11.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
68a98bcce650e3d4d5eedcf2b9ec56805ebcee7a3f7af04287daea17fa376914
|
|
BLAKE2b-256 checksum How to use checksums |
86db2715bd30c51a1d03a81893d9cefa83dca1ef414c8441a07c761cf1ac500a
|
| 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 Sep 21, 2026.
Transparency log