Automatically add and delete modules to requirements.txt installing them using pip.
Project description
to-requirements.txt | Automatically Update requirements.txt
to-requirements.txt allows for the automatic management of dependencies in requirements.txt
using pip as a package manager.
Benefits
-
Easy Setup: The installation process involves just two steps: installing the package using pip and setting it up using the provided script. That's it.
-
One-Command Setup: Set up a VirtualEnv-based project in a single command. It creates a virtual environment and installs to-requirements.txt automatically.
-
Customizable: Customize it as you prefer: use it only in Git repositories, allow or disallow automated
requirements.txt
file creation, enable or disable the package itself. -
User-Friendly: After installation and setup, there are no additional conditions to use. Simply install, uninstall, or upgrade packages using pip as usual.
-
Always in Sync: With to-requirements.txt, the project's
requirements.txt
will always stay in sync with packages installed via pip.
Installation
To install the package, run the following command:
pip install to-requirements.txt
Then, initialize the package with:
requirements-txt install
To enable all available functionality, add the following lines to your .bashrc
, .zshrc
, or other .*rc
file:
alias rt=". rt"
alias requirements-txt=". requirements-txt"
Or, use the CLI command:
rt alias
This enables sourced mode of the CLI execution and allows the CLI to activate or deactivate your virtual environment if required.
Note: The changes made to pip scripts will not affect the ordinary pip workflow after uninstalling to-requirements.txt.
Setup Project
To set up a VirtualEnv-based project, simply type:
requirements-txt init
Or, achieve the same effect more easily with aliases:
rt i
Documentation
For detailed documentation, visit requirements-txt.readthedocs.io.
Contributing
See CONTRIBUTING.md for contribution guidelines.
License
This project is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for to_requirements_txt-2.0.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75df4f69b46f2d683ac3d39cc792f0ed86fae95ebc1a67aeb6a7e18be7bc29c8 |
|
MD5 | bd9c494796a08c352bd4f1ff85b3f273 |
|
BLAKE2b-256 | bd0e8c18056c9b942c9bbfb4c657811765a8332a7e439033a923e39d80038a46 |
Hashes for to_requirements.txt-2.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fdd913e3b6eb7c72914e0d0005e14a9a8b6972c16e58c917a0caeb56248b34a8 |
|
MD5 | f8e9e63c37c3ece22af8ccdec40c98d6 |
|
BLAKE2b-256 | a95a701c23eddb974de64dcbbf50889b1fe58be72c8c61a8cc376e4357ae385d |