Skip to main content

A nodemon alternative for Python

Project description

PyWatcher: Your Dynamic Script Supervisor 🚀

Welcome to PyWatcher! Whether you're a seasoned developer or just getting started, PyWatcher is here to simplify your development process. It's designed to automatically restart scripts or applications when any change is detected, so you can keep coding without the constant back-and-forth of manual restarts.

PyWatcher Demo

🌟 Features

  • Instant Auto-restart: Say goodbye to manual restarts! PyWatcher does it instantly whenever it detects changes.
  • Supports Many Languages: Whether you're coding in Python, JavaScript, or many others, PyWatcher has got you covered.
  • Highly Customizable: Decide what you want to watch, how, and when. Tailored to fit your unique needs.
  • Beautiful Console Output: With the Rich library, get feedback that's more than just text. It's an experience.
  • Interactive Mode: More than just a watcher. Pause, resume, or restart your scripts right from your console.
  • Desktop Notifications: Always stay in the loop, even if you're lost in a sea of tabs!

📥 Installation

It's as simple as:

```bash pip install pywatcher ```

🚀 Getting Started

Basic Usage:

Just starting out? Try this:

```bash pywatcher your_script.py ```

Advanced Configuration:

For the pros out there:

```bash pywatcher your_script.py --path /your/path/ --recursive --extensions .py .js --delay 2 --log-file watcher.log --notify ```

Options:

  • --path: Choose the directory you want to keep an eye on. By default, it's where you stand.
  • --recursive: For those deep project hierarchies. Dive into all subdirectories.
  • --extensions: Tell PyWatcher exactly what file types you're working with.
  • --delay: How long should PyWatcher wait after a change to restart? You decide.
  • --log-file: Keep a record of all the changes and restarts.
  • --notify: For those who love notifications!
  • --interpreter: Got a favorite Python interpreter? Let PyWatcher know.
  • --language: Maybe you're not coding in Python? That's okay too!

🌐 Supported Languages

Out of the box, PyWatcher is fluent in:

  • Python (py)
  • JavaScript (js)

Got another language in mind? It's easy to add. Just modify the config.py file and include your desired language and its corresponding interpreter.

🤔 Need Help?

We've all been there. Check out our Wiki or join our Community Forum. Our community is super friendly and always eager to help a fellow developer!

🤝 Contribution

Every great tool is built by the community. Fork, modify, and make PyWatcher even better! For major changes, please open an issue first. Let's discuss and make magic together!

📜 License

PyWatcher is proud to be open-source and is licensed under MIT.

Happy Coding! 🎉

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

NexaWatch-0.1.tar.gz (6.1 kB view details)

Uploaded Source

File details

Details for the file NexaWatch-0.1.tar.gz.

File metadata

  • Download URL: NexaWatch-0.1.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.0

File hashes

Hashes for NexaWatch-0.1.tar.gz
Algorithm Hash digest
SHA256 29b88016624eab0efe9daef938b36ba79f545b704fcfb7e80aa7a1170f88ae05
MD5 444f6594cea17c240a1ccab0a6be023a
BLAKE2b-256 60ca23923e77bc19f485c08ab92e1e5ede4d0c19f98724c7d8f883bbaeacfc07

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