Skip to main content

to-requirements.txt | Automatically update requirements.txt

PyPI release Build status Maintainability License

to-requirements.txt allows to automatically manage dependencies in requirements.txt using pip as a package manager.

Demo

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.

Metadata

Release files for to-requirements.txt 2.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for to-requirements.txt 2.0.4
File Size Uploaded Provenance Actions
to-requirements.txt-2.0.4.tar.gz 22.1 kB Without provenance Details for to-requirements.txt-2.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for to-requirements.txt 2.0.4
File Interpreter ABI Platform Actions
to_requirements.txt-2.0.4-py3-none-any.whl Python 3 none any Details for to_requirements.txt-2.0.4-py3-none-any.whl

Total release size: 58.5 kB

Release files / to-requirements.txt-2.0.4.tar.gz

Download URL to-requirements.txt-2.0.4.tar.gz
Size 22.1 kB
Tags Source
SHA-256 checksum
How to use checksums
53194d28d558e625dda021647d4c551f194e78acdb2ac5c119c75a7bdb76412e
BLAKE2b-256 checksum
How to use checksums
a68867a0831145f378314651d87b1355b40d27c3215c2c354746244f5cbbae79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.18

Release files / to_requirements.txt-2.0.4-py3-none-any.whl

Download URL to_requirements.txt-2.0.4-py3-none-any.whl
Size 36.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
97d2317d22835b6956629f58f2c372071ae40a2f8cccce00484160e9756d21c5
BLAKE2b-256 checksum
How to use checksums
6386b33fd77b9e761ed756875745fc3e3f4260854ab966fdaa16cb53eff0f9b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.18

Security for to-requirements.txt 2.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page