Skip to main content

to-requirements.txt | Automatically update requirements.txt

PyPI release Build status Documentation

Maintainability made-with-python 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 1.3.0

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

Built distribution (wheel)

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

Total release size: 28.5 kB

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

Download URL to-requirements.txt-1.3.0.tar.gz
Size 12.5 kB
Tags Source
SHA-256 checksum
How to use checksums
dfc3de3a0aa54f3250457603eebb5bab34f3753a262bf3e0e5ab4ffe0c13fd3c
BLAKE2b-256 checksum
How to use checksums
3121bac9d9bdba0d94259e83bc36f0dc7b7305c93e43ec8109b5b63196cfba5a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

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

Download URL to_requirements.txt-1.3.0-py3-none-any.whl
Size 16.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c96d2d8cea6aed9f2a4afe1713b3adee2fa35b56b0d1993c5fab0769091b5141
BLAKE2b-256 checksum
How to use checksums
a36a9baa73e2deddba14b1cfe081cd38aaefaedc154bd98e7793a11ee92dbdc0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Security for to-requirements.txt 1.3.0

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