Skip to main content

A Python auto-reloading development runner

Project description

PythonDevRunner

Auto-reload your Python app when source files change. Useful for development of web servers, CLI tools, or any script-driven workflow.

🚀 Features

  • Watches for changes in .py files
  • Automatically restarts your app
  • Configurable via CLI or JSON file
  • Cross-platform support

🛠 Installation

pip install .

💡 Usage

CLI

devrunner --entry main.py --watch-ext .py --exclude venv __pycache__ --debounce 0.5

Config file

devrunner --config examples/config.json

🔧 Configuration Options

Option CLI Flag Config Key Default
Entry script --entry entry main.py
Extensions --watch-ext watch_ext [".py"]
Exclude --exclude exclude []
Debounce --debounce debounce 0.5
Verbose --quiet quiet false

📦 Packaging

Supports installation via pip install . and CLI via devrunner.


License

MIT

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

pythondevrunner-0.1.1.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

PythonDevRunner-0.1.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file pythondevrunner-0.1.1.tar.gz.

File metadata

  • Download URL: pythondevrunner-0.1.1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for pythondevrunner-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6a471fa884cc6923a3426fa4db8470c765ca01f300f10b881d3199d224b7d76e
MD5 a76d3a6a16c02ca7c3ad4a7948b69ad5
BLAKE2b-256 a7e192d08fbbccf379786fbebf939606d8a04bba1f83393beffe933c3a6f312c

See more details on using hashes here.

File details

Details for the file PythonDevRunner-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for PythonDevRunner-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8fc932c3e4a7dc8723382884e40c933d82f2815aab83e89539b7595a1e0a962d
MD5 3347058a92090b39145439d00a08df93
BLAKE2b-256 5107ffa3d8a39d6571eaf4a400387e3c7f135868a951425c2ef914faeef70c85

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