Skip to main content

VenvWatch

PyPI - Python Version PyPI GitHub License GitHub issues GitHub stars

VenvWatch is a lightweight Python package that continuously monitors your virtual environment and automatically updates your requirements.txt file whenever you install or uninstall a package. No more manually managing dependencies—VenvWatch does it for you in real-time!

Features

  • Automatic Sync: Detects changes in your virtual environment and updates requirements.txt instantly.
  • Continuous Monitoring: Runs in the background, listening for any modifications to your installed packages.
  • Simple CLI: Easy-to-use command-line interface to start and manage the watcher.
  • Configurable Options: Customize how VenvWatch handles changes, such as removing unused dependencies.

Installation

Install VenvWatch using pip:

pip install venvwatch

Usage

Basic Usage

To start monitoring your virtual environment, navigate to your project directory and run:

venvwatch watch

VenvWatch will monitor your virtual environment for any changes and update the requirements.txt file accordingly.

Configuration Options

VenvWatch can be customized with a variety of command-line options:

  • --venv: Specify the path to your virtual environment.

    venvwatch watch --venv /path/to/your/venv
    
  • --interval: Set the interval (in seconds) for how often VenvWatch checks for changes.

    venvwatch watch --interval 5
    
  • --no-remove: Disable automatic removal of dependencies that are no longer in the environment.

    venvwatch watch --no-remove
    

Example

Start watching your virtual environment and update requirements.txt in real-time:

venvwatch watch --venv ./venv --interval 5

VenvWatch will run in the background, keeping your requirements.txt file perfectly synced with your installed packages.

Contributing

Contributions are welcome! If you have any ideas, suggestions, or find any bugs, feel free to open an issue or submit a pull request.

  1. Fork the repository.
  2. Create a new branch.
  3. Make your changes.
  4. Submit a pull request.

License

VenvWatch is licensed under the MIT License. See the LICENSE file for more details.

Support

If you encounter any issues or have questions, please open an issue on GitHub.


Happy Coding!

Release files for venvwatch 0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for venvwatch 0.6
File Size Uploaded
venvwatch-0.6.tar.gz 4.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for venvwatch 0.6
File Interpreter ABI Platform
venvwatch-0.6-py3-none-any.whl Python 3 none any Details

Total release size: 10.1 kB

Release files / venvwatch-0.6.tar.gz

Download URL venvwatch-0.6.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
fc1836831752438b3fdddbe5799067263fa244884b6cd8ed7b1944fbe0bec73d
BLAKE2b-256 checksum
How to use checksums
ba300e0bae8abcc0137d789f7cbb69099fd795e0ffab89454de471d2ddcef384
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.3

Release files / venvwatch-0.6-py3-none-any.whl

Download URL venvwatch-0.6-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6be435b79549bdb814d5dab61b7bd406bd7c4e1c582e95a8ebc05ce981f02a9e
BLAKE2b-256 checksum
How to use checksums
821168a31773d277e6862a7a33309db293cd6b7cac31e645bdeef90485fa6ab8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.6 This release

2 release files

0.5

2 release files

0.4

2 release files

0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page