Run any Python script with automatic environment setup, fast package resolution via uv, and reproducible lockfile generation
Project description
smartrun
Run any Python script in a clean, disposable virtual environment — automatically.
smartrun 🚀
Run Python and Jupyter files with zero setup, zero pollution. Just run it.
smartrun scans your script or notebook, detects the required third-party packages, creates (or reuses) an isolated environment, installs what’s missing — and runs your code.
✅ No more ModuleNotFoundError
✅ No more cluttered global site-packages
✅ Just clean, reproducible execution — every time
Features
- 🧪 Supports both
.pyand.ipynbfiles - 🔍 Automatically detects and resolves imports
- 🛠️ Uses
venvor fastuvenvironments (if available) - 📦 Installs only what's needed, only when needed
- 💡 Reuses environments smartly to save time
Installation
pip install smartrun
Requires Python 3.10+
Usage
smartrun your_script.py
## Notebook
```bash
smartrun your_notebook.ipynb
If the dependency isn’t installed yet, smartrun will fetch it automatically.
Why smartrun?
Because setup should never block you from running great code. Whether you're experimenting, prototyping, or sharing — smartrun ensures your script runs smoothly, without dependency drama.
Contributing
Contributions are welcome! 🧑💻
If you’ve got ideas, bug fixes, or improvements — feel free to open an issue or a pull request. Let’s make smartrun even smarter together.
License
BSD 3‑Clause — see LICENSE for details.
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 smartrun-0.2.1.tar.gz.
File metadata
- Download URL: smartrun-0.2.1.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ac0c5fec5ac4a2a1c697e9e9c80bb39bcb62a65a5bf9af137f7af13a3c4624b
|
|
| MD5 |
7f094064a498a27d77e66dd7e1372be7
|
|
| BLAKE2b-256 |
0339497bcf39d032e64c4e0308d037a11db2346d5bd94930456d203338abc85c
|
File details
Details for the file smartrun-0.2.1-py3-none-any.whl.
File metadata
- Download URL: smartrun-0.2.1-py3-none-any.whl
- Upload date:
- Size: 13.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb43764d25e1949b923a2cbd6ef51921e61564e3661d3c89c1ceebfff2b02e22
|
|
| MD5 |
fe880cb55542a5ffead2be97bc10f6b2
|
|
| BLAKE2b-256 |
061f6fd4c159b6fefacd862c784647f6d6fe26ed05ef0d392ab930b47bae14d0
|