AutoPip is an open-source Python CLI tool designed to streamline your dependency management workflow. It acts as a smart wrapper around standard pip, with a powerful capability: it automatically manages and updates your requirements.txt file every time you install or uninstall a package.
No more forgetting to run pip freeze > requirements.txt or dealing with cluttered dependency files filled with unnecessary sub-dependencies. AutoPip ensures your project requirements stay clean and perfectly in sync with your environment.
- Automatic Synchronization: Installs or uninstalls Python packages and immediately reflects those changes in your
requirements.txt. - Cleaner Requirements: It tracks the packages you explicitly requested, avoiding a messy
requirements.txtpolluted with transitive dependencies. - Familiar Syntax: Works as a drop-in replacement. Simply type
autopipinstead ofpipin your daily workflow. - Open Source: Completely free to use, modify, and distribute. Contributions from the community are highly encouraged.
To start using AutoPip, you can clone the repository and install it locally:
git clone https://github.com/7xmohamed/autopip.git
cd autopip
pip install -e .Using AutoPip is just as intuitive as standard pip.
Install one or more packages and AutoPip will automatically append them (along with their versions) to your requirements.txt:
autopip install <package_name> [<another_package> ...]Example: autopip install requests numpy
Uninstall packages and AutoPip will automatically find and remove them from your requirements.txt:
autopip uninstall <package_name> [<another_package> ...]Example: autopip uninstall numpy
AutoPip is open source. If you want to contribute, whether it's fixing bugs, improving documentation, or adding new features, we welcome your pull requests.
Head over to our GitHub Repository to get involved.
This project is open-source and licensed under the MIT License.