Skip to main content

PicoForge Python Host

Documentation / Dashboard guides

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/src. The Direct dashboard is independent: no code is shared with Direct. See the Direct independence policy. This host connects over USB HID, not Bluetooth LE. Available controls depend on firmware capabilities and fresh status; see the HID report reference for the device contract.

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
python -m 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. status returns the reports received within a five-second collection window; unavailable report fields remain null. The top-level msc status key is retained for compatibility and deprecated in favor of memory.msc.

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 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. Each dashboard process allows one active console session, bound to its selected board. The board's TCP service can require its saved 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 integration.

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.

Import report codecs from picoforge.reports, HID access from picoforge.hid, and dashboard services from picoforge.dashboard. Each public package can be imported independently without opening a device. For module ownership, cleanup failure policy, and focused type checks, see Python host design.

Metadata

Release files for picoforge 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for picoforge 0.1.0
File Interpreter ABI Platform Actions
picoforge-0.1.0-py3-none-any.whl Python 3 none any Details for picoforge-0.1.0-py3-none-any.whl

Release files / picoforge-0.1.0-py3-none-any.whl

Download URL picoforge-0.1.0-py3-none-any.whl
Size 102.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
19a95bac529fadc1264a7b5498fac2113418b7b9ca1f456f8a9d9993b3306c21
BLAKE2b-256 checksum
How to use checksums
35191412314d2005ea1d84e302681a94871d5d1eee54f0b04ae9428dd22440ca
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 26, 2026.

Transparency log

Security for picoforge 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

1 file in this release has been uploaded with provenance metadata.

Attestation for picoforge-0.1.0-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 26, 2026.

Transparency log

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