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

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

Built distribution (wheel)

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

Total release size: 58.7 kB

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

Download URL to-requirements.txt-2.0.5.tar.gz
Size 22.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d294cb4ea36a924033e9f0ef14deb4ffa16a816b714b97313c5a8e817ff9f57e
BLAKE2b-256 checksum
How to use checksums
b067f186875c8f609137a5c555a532f33d7708378458ffcd55aa4dc1a897089a
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.5-py3-none-any.whl

Download URL to_requirements.txt-2.0.5-py3-none-any.whl
Size 36.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2be2a7dc3cfc561155e5e5bce2c3716f54794d265de4e751ecae0207463d80cb
BLAKE2b-256 checksum
How to use checksums
427a7a76e245b0b85b09a4d348e8a05f34016183109e7488403c98581d2162d9
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.5

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