Skip to main content

Run any Python script with automatic environment setup, fast package resolution via uv, and reproducible lockfile generation

Project description

Python package

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 .py and .ipynb files
  • 🔍 Automatically detects and resolves imports
  • 🛠️ Uses venv or fast uv environments (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


Download files

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

Source Distribution

smartrun-0.2.0.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

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

smartrun-0.2.0-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file smartrun-0.2.0.tar.gz.

File metadata

  • Download URL: smartrun-0.2.0.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.13

File hashes

Hashes for smartrun-0.2.0.tar.gz
Algorithm Hash digest
SHA256 7170ebddda11fec4296e72277c20f2319f7b31ac7287d5ad2456869d0c644778
MD5 8cd7e91b247f7dbe6cac1053de1669de
BLAKE2b-256 3850e8202b9600bf0891f283b72d0e417a604b33e8eb71daf4f3140d31a1548e

See more details on using hashes here.

File details

Details for the file smartrun-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: smartrun-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 12.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.13

File hashes

Hashes for smartrun-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7d0c22d688846b9299c32a4eb0fe56e3e649a8a66e8b61c770a5937916fdebe4
MD5 0d2f4350176b5a9ac02b241e09b669be
BLAKE2b-256 bf307e19a6f31179b36af95d70527a83069f5a4e386cb9721a9c33c473319956

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