Skip to main content

Shared scaffolding for PICO dev tools (runners, ports, console helpers)

Project description

tools/common — pico_tool_common

Shared Python scaffolding for the PICO dev tools under tools/*.

Why

Every tool used to duplicate the same boilerplate: console helpers, default ports, repo-root discovery, uvicorn runners, Vite/npm orchestration, etc. This package consolidates that logic so bug fixes and UX improvements propagate to all tools.

What lives here

Module Purpose
pico_tool_common.console Shared rich console instance
pico_tool_common.ports Canonical default ports for every tool
pico_tool_common.fs find_repo_root, normalize_path
pico_tool_common.web.runner run_app() for FastAPI/uvicorn tools
pico_tool_common.vite run_vite() for Vite-based WASM tools

Development

Each tool consumes this package as an editable path dependency:

[project]
dependencies = ["pico-tool-common", ...]

[tool.uv.sources]
pico-tool-common = { path = "../common", editable = true }

Release

pico tool release <tool> builds the common wheel alongside the tool wheel and embeds both URLs in the generated install script, so standalone installs keep working without publishing to PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pico_tool_common-0.1.0.tar.gz (57.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pico_tool_common-0.1.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file pico_tool_common-0.1.0.tar.gz.

File metadata

  • Download URL: pico_tool_common-0.1.0.tar.gz
  • Upload date:
  • Size: 57.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for pico_tool_common-0.1.0.tar.gz
Algorithm Hash digest
SHA256 46a30bd1c89619626caf6b4ee4e4f60d5dfcc59b968fecadba86f4123f450516
MD5 a363c96f57343a123ef1d44b7fa1fecb
BLAKE2b-256 e05b699582107467ee6fb46bb25966b717cad36014db8d696400aa74bcd0a739

See more details on using hashes here.

File details

Details for the file pico_tool_common-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pico_tool_common-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ac9b824c7700bbc63104374ac190f08f4ac00979be78f0b2c9fc32717c11b2ad
MD5 5ea629cd364c2de9bd3f8a6b7384eebe
BLAKE2b-256 66a7b77148933a288fc03b10e59688ee88f06144ee2827e88b59497f48e8cafe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page