Basic Usage¶
Learn the fundamentals of using Pyreload to monitor and restart your Python applications.
Running Pyreload¶
The basic syntax is:
Common Patterns¶
Watch Current Directory¶
Watch Specific Directories¶
Custom Extensions¶
Interactive Commands¶
While Pyreload is running, you can use these commands:
r- Manual restartq- Quit Pyreloadh- Show help
Configuration File¶
Instead of command-line options, you can use a config file:
# pyreload.yml
watch:
- src
- config
extensions:
- py
- yaml
ignore:
- "**/__pycache__/**"
- "**/.git/**"
Then run:
Environment Variables¶
Pyreload passes all environment variables to your script:
Next Steps¶
- Configure Watch Patterns
- Learn about Ignore Patterns
- Explore Advanced Features