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.3

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.3
File Size Uploaded Provenance Actions
to-requirements.txt-2.0.3.tar.gz 21.8 kB Without provenance Details for to-requirements.txt-2.0.3.tar.gz

Built distribution (wheel)

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

Total release size: 57.7 kB

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

Download URL to-requirements.txt-2.0.3.tar.gz
Size 21.8 kB
Tags Source
SHA-256 checksum
How to use checksums
37fc4fad323a458aa5e0f8f65414db825313c569774e52fc7577b5f7debe9677
BLAKE2b-256 checksum
How to use checksums
6e3e621f37cdffbfd271b8d62cc9dc4b9c63d8f9c5ee6bcd2912367d4ed78446
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

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

Download URL to_requirements.txt-2.0.3-py3-none-any.whl
Size 35.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
af4f10aebeb41ab9fe1afffad2628da546c00bec546044fc26e78c280df82f51
BLAKE2b-256 checksum
How to use checksums
4dce431c4d237eb1c86aca0d6419e944d544cd2f187ad8655affce7ba33d4039
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Security for to-requirements.txt 2.0.3

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