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 to automatically manage dependencies in requirements.txt using pip as a package manager.
Benefits
Easy to setup. The installation process include only two steps: install the package using pip and setup up it using script provided by the package. That's it.
Setup in one command. You can set up VirtualEnv-based project in one command. It will create virtual environment. And install to-requirements.txt automatically.
Customizable. Customize it the way you like: use it only in git repositories, allow or disallow automated requirements.txt file creation, enable or disable the package itself.
Easy to use. After installing the package, running setup command and (optionally) customizing it the package is ready. There is no additional conditions to use. Just install, uninstall or upgrade packages using pip as you usually do.
Always in sync. With to-requirements.txt the project's requirements.txt will always stay in sync with packages that you install using pip.
Installation
To install the package run the following command:
pip install to-requirements.txt
And after that run the command below to initialize the package:
requirements-txt install
It will update your current pip scripts to execute the functionality of this package. Also, if you want to enable all the available functionality of the package you should put the lines below to your .bashrc, .zshrc or other .*rc file:
alias rt=". rt"
alias requirements-txt=". requirements-txt"
Or simply use the cli command:
rt alias
It will enable sourced mode of the cli execution and the cli will be able to activate your virtual environment / deactivate it if required.
The changes made to pip scripts will not affect ordinary pip workflow after uninstalling to-requirements.txt.
Setup project
To set up VirtualEnv based project just type:
requirements-txt init
The same effect could be achieved much easier with aliases:
rt i
Documentation
The detailed documentation is available on requirements-txt.readthedocs.io.
Contributing
Visit the file CONTRIBUTING.md.
License
Visit the file MIT.
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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1345b2b7278c6008c4c21451dc35b58a3af683c71e8e3e0d4aa02c2d4ffe8cf |
|
MD5 | 093237c8d07de83c4d97076581381d0c |
|
BLAKE2b-256 | 9aaf2281003aabb18fe7e165e217c690ceb33ba0fe248ace693665cf380241d3 |
Hashes for to_requirements.txt-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 100fb9235acc3872e4a029224b228ad13f170003e80ef3c0b7f438f1b670ed62 |
|
MD5 | e46ad5a47385ca8e23c12cad52c47085 |
|
BLAKE2b-256 | 207082c103cc03ad08d2effa29168480948eb3aa78c2ce284504adda6c797f1c |