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 PyPI PyPI Downloadst

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.1.tar.gz (9.9 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.1-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

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

Hashes for smartrun-0.2.1.tar.gz
Algorithm Hash digest
SHA256 6ac0c5fec5ac4a2a1c697e9e9c80bb39bcb62a65a5bf9af137f7af13a3c4624b
MD5 7f094064a498a27d77e66dd7e1372be7
BLAKE2b-256 0339497bcf39d032e64c4e0308d037a11db2346d5bd94930456d203338abc85c

See more details on using hashes here.

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

Hashes for smartrun-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fb43764d25e1949b923a2cbd6ef51921e61564e3661d3c89c1ceebfff2b02e22
MD5 fe880cb55542a5ffead2be97bc10f6b2
BLAKE2b-256 061f6fd4c159b6fefacd862c784647f6d6fe26ed05ef0d392ab930b47bae14d0

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