PiRG (Pip Requirements Generator) is a minimalist command-line tool designed for Python developers who prefer a simple approach to managing project dependencies. Unlike traditional requirements files that include all installed packages and their dependencies, PiRG focuses on capturing only the primary packages you install using pip install
. This makes your requirements.txt
file concise and easier to manage.
With PiRG, you can also pass additional pip install
or pip uninstall
options to customize package installation and removal.
Instead of looking back and searching through project files which packages are needed for project, with PiRG you record each installed package. If you don't want to put some package into requirements.txt
just use pip
.
Before using pirg, make sure you have Python 3.8 or higher installed on your system.
-
Install pirg using pip:
pip install pirg
-
Verify the installation by running:
pirg --help
-
You're ready to use pirg!
- install - Add package to environment and
requirements.txt
- uninstall - Remove package from environment and
requirements.txt
- search - Search PyPI for package
This project makes use of the following third-party libraries, each with its own licensing terms:
- Typer (MIT License)
- Requests (Apache License 2.0)
- packaging (Apache License 2.0)
- fuzzywuzzy (GPL-2.0 License)
- BeautifulSoup (MIT License)
Additionally, this project contains code under the GPL-2.0 License
Contributions to pirg are welcome! If you encounter any issues or have suggestions for improvements, please open an issue or submit a pull request on the GitHub repository.