Skip to main content

to-requirements.txt | Automatically Update requirements.txt

PyPI Release Build Status Maintainability License

to-requirements.txt allows for the automatic management of dependencies in requirements.txt using pip as a package manager.

Demo

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.

Metadata

Release files for to-requirements.txt 2.0.10

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.10
File Size Uploaded Provenance Actions
to_requirements_txt-2.0.10.tar.gz 21.9 kB Without provenance Details for to_requirements_txt-2.0.10.tar.gz

Built distribution (wheel)

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

Total release size: 58.4 kB

Release files / to_requirements_txt-2.0.10.tar.gz

Download URL to_requirements_txt-2.0.10.tar.gz
Size 21.9 kB
Tags Source
SHA-256 checksum
How to use checksums
5862d91d00cd05939a58e625bc240ada6e4e442108512bee2147dae0f5ff596b
BLAKE2b-256 checksum
How to use checksums
a58a95088fce491b142d705b78748ce31dd1f5dc0ffc6c381dc6834869e84eb9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

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

Download URL to_requirements.txt-2.0.10-py3-none-any.whl
Size 36.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5c4fe7710a81b4701143c0b3d9040480c7d5740ed4ed8ea76c0b283b8dac26ee
BLAKE2b-256 checksum
How to use checksums
cb5e0951c98e4ff0d884621f3aed9c0c035b4d82a22dbff878b271bbe72d8265
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

Security for to-requirements.txt 2.0.10

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