PicoForge Python Host
USB HID control, diagnostics, and a local dashboard for PicoForge firmware on Pico, Pico 2, and their W variants. Basic monitoring needs no SD card. Storage and wireless controls depend on the connected firmware's capabilities.
Python and .NET share their own frontend in host/web. The Direct dashboard is independent: no dashboard
components are shared with Direct. See the
dashboard isolation policy.
This Python host connects over USB HID, not Bluetooth LE.
The dashboard supports Feature 30 status versions 1-4 and Feature 35 result versions 1-2, including TCP CLI
enable/authentication settings and scan security labels. It blocks saving expired temporary test credentials after
ten minutes; legacy firmware keeps its existing CLI settings.
Install
Use Python 3.10 or newer in a virtual environment:
python -m venv .venv
Activate it with source .venv/bin/activate on Linux/macOS or .venv\Scripts\Activate.ps1 in Windows PowerShell, then:
python -m pip install picoforge
picoforge web
Open http://127.0.0.1:5000/. The wheel includes the local dashboard assets; Node.js and .NET are not required. Runtime dependencies are Flask and HIDAPI, with versions defined in pyproject.toml. Native HID access still requires the operating system's usual libraries, drivers, and permissions.
Packages are published to PyPI and GitHub Releases after successful release setup and publication; downloads may be unavailable before then. For firmware installation and wiring, start with Getting Started.
Run from a source checkout
From the repository root:
tools/host/run-python.sh
The launcher creates build/picoforge and installs the package on first use. Set PYTHON to choose the base
interpreter or VENV_DIR to choose its environment. For an explicit development installation in your active environment:
python -m pip install --editable host/python
Commands
picoforge web
picoforge web --port 5001
picoforge status
picoforge status --serial SERIAL
picoforge reboot --serial SERIAL --confirm
picoforge --help
status prints JSON diagnostics. reboot requires explicit confirmation and uses the board's saved settings.
All three commands accept either --serial SERIAL or --device-path PATH to select a board.
The source launcher accepts the same command and options, for example tools/host/run-python.sh web --port 5001.
Use Rescan and the dashboard's board selector to switch between attached boards. Run only one HID host connection per board; separate host processes can conflict for access. Python and .NET both default to port 5000, so use a different port when running both.
On Linux, if HID access is denied, run the permission setup script from the source checkout, reconnect the board, and restart the dashboard:
tools/host/hid-permissions-setup.sh
Dashboard Operations
- Monitor: live board identity, runtime, memory, pins, SD-card details, and board LED control.
- Boot configuration: save clock, storage-speed, and supported radio settings with Save&Reboot. Reboot Board uses the already saved settings. See settings and save safety.
- SD storage: Enable USB drive hands the card to the computer; firmware file operations and self-tests are unavailable while USB owns it. Safely eject before returning it. Return to Pico requires data-loss confirmation; successful remount does not prove filesystem integrity. See storage setup and use and force-return risks.
- SD benchmark: start/cancel the firmware self-test and view verified bytes and throughput. It writes a temporary file: back up card data and follow the benchmark procedure.
- W-board wireless: provision Wi-Fi and a BLE control key over USB. Bluetooth connections use the independent Direct dashboard. See wireless setup and security limits.
- Wi-Fi console: a connected SSID/IP link opens the local TCP console when supported by firmware. The board's TCP service can require its saved BLE control key, but traffic is always unencrypted; use only on a trusted LAN. See console setup and session limits.
Commands can be rejected or remain uncertain after a timeout/disconnect; delivery is not completion. Do not replay uncertain writes. Feature availability and safety gates follow the connected firmware. Builds and host tests do not establish physical hardware reliability; see the qualification gaps.
Development and License
For host tests and frontend ownership, see Host Tools Development. Detailed wire reports and local wireless API semantics belong in the USB HID reference and wireless reference.
The package uses the BSD-3-Clause license. Its LICENSE mirrors the
repository license and is included in built wheels; keep both copies identical.
Package metadata, dependencies, and the picoforge entry point are defined in pyproject.toml.
Metadata
Release files for picoforge 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| picoforge-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for picoforge-0.0.5-py3-none-any.whl |
Release files / picoforge-0.0.5-py3-none-any.whl
| Download URL | picoforge-0.0.5-py3-none-any.whl |
|---|---|
| Size | 89.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b9e16176946ac9a5a85fd92982182e89172032a69bacea2e5af03b757c4b0194
|
|
BLAKE2b-256 checksum How to use checksums |
c4bb994d39ecf74126c703bee875c31c8ba5d588fe2cc7b7d3ae9e5b095d29bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 3, 2026.
Transparency logSecurity for picoforge 0.0.5
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
1 file in this release has been uploaded with provenance metadata.
Attestation for picoforge-0.0.5-py3-none-any.whl
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 Nov 3, 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.