Skip to main content

A simple command line utility to manage Python scripts and single-file web apps with automatic dependency isolation

Project description

Simple Toolchain (tc)

A simple command line utility to manage your Python scripts and single-file web apps with automatic dependency isolation.

Installation

pip install -e .

Requirements

  • uv (recommended): For automatic dependency isolation when running Python scripts
    • Install with: curl -LsSf https://astral.sh/uv/install.sh | sh
    • If uv is not available, scripts will fall back to system Python

Usage

Add a script or web app

tc add script.py my_script
tc add webapp.html my_webapp

Run a stored item

tc run my_script
tc run my_webapp

List all stored items

tc list

Remove a stored item

tc remove my_script

How it works

  • Files are copied to ~/.toolchain/ directory
  • Python scripts are stored in ~/.toolchain/scripts/
  • HTML files are stored in ~/.toolchain/webapps/
  • Metadata is tracked in ~/.toolchain/metadata.json
  • Running scripts uses uv run for automatic dependency isolation (or falls back to system Python)
  • Running web apps opens them in your default browser

Dependency Management

When using uv run (recommended), each script runs in its own isolated environment:

  • Dependencies are automatically installed from script imports
  • No need to manually install packages on your system
  • Each script gets a clean, isolated Python environment
  • Add dependencies to your scripts using standard Python imports or # /// script metadata blocks

Supported file types

  • .py - Python scripts
  • .html - Single-file web applications

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

simple_toolchain-1.0.1.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

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

simple_toolchain-1.0.1-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file simple_toolchain-1.0.1.tar.gz.

File metadata

  • Download URL: simple_toolchain-1.0.1.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.12

File hashes

Hashes for simple_toolchain-1.0.1.tar.gz
Algorithm Hash digest
SHA256 f9fbb91b398de07dcd9565ed132c58d4e83c014b3e0f9d0e3a42e00a176f2d7b
MD5 1d4cac32339bcda19680579e000e6288
BLAKE2b-256 4864ea5b6c538ec289aeb307a6903c185dff5cb7572dba58fb45113aed82183d

See more details on using hashes here.

File details

Details for the file simple_toolchain-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for simple_toolchain-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cd41b93d6417384ff06311f4d2973f0a05d4e31b32cd4ba1283e3d8a4196903a
MD5 95fe63db122540096ebe73b116c70cd6
BLAKE2b-256 86f65ecac366f01fc3b5bdd063ec821911c9174dd08905a7dd9cfac1f388d6f3

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