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
uvis not available, scripts will fall back to system Python
- Install with:
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 runfor 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
# /// scriptmetadata blocks
Supported file types
.py- Python scripts.html- Single-file web applications
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9fbb91b398de07dcd9565ed132c58d4e83c014b3e0f9d0e3a42e00a176f2d7b
|
|
| MD5 |
1d4cac32339bcda19680579e000e6288
|
|
| BLAKE2b-256 |
4864ea5b6c538ec289aeb307a6903c185dff5cb7572dba58fb45113aed82183d
|
File details
Details for the file simple_toolchain-1.0.1-py3-none-any.whl.
File metadata
- Download URL: simple_toolchain-1.0.1-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd41b93d6417384ff06311f4d2973f0a05d4e31b32cd4ba1283e3d8a4196903a
|
|
| MD5 |
95fe63db122540096ebe73b116c70cd6
|
|
| BLAKE2b-256 |
86f65ecac366f01fc3b5bdd063ec821911c9174dd08905a7dd9cfac1f388d6f3
|