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
File details
Details for the file toreqs-2.0.11.tar.gz
.
File metadata
- Download URL: toreqs-2.0.11.tar.gz
- Upload date:
- Size: 21.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff76ab50cbe2066ec9294307044e5c0e2adbaffb683e54a462afcdc8a39845cc |
|
MD5 | bea803a8e1c2c4a14c83e4a3d77d5a9f |
|
BLAKE2b-256 | 9fc70662a4e5d2b733272ff9cb448b833bb1c94d429d3fa71c43955c8724301c |
File details
Details for the file toreqs-2.0.11-py3-none-any.whl
.
File metadata
- Download URL: toreqs-2.0.11-py3-none-any.whl
- Upload date:
- Size: 36.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4d88dffe1d36017306072afa00d80deed278fcc71fe95ad6a853c6c606e2e1b |
|
MD5 | cac50deae078efc53079a78afc91edd0 |
|
BLAKE2b-256 | af3183d6b9949ecf7644be7e2e31508921f9c34fa5e3ce2c5c556870a53e978e |