Skip to main content

REX | Automatically Update requirements.txt

PyPI Release Build Status Maintainability License

REX 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 rex

To enable all available functionality, add the following lines to your .bashrc, .zshrc, or other .*rc file:

rex alias

or just paste this lines to your .bashrc, .zshrc, or other .*rc file:

alias rt=". rt"
alias requirements-txt=". requirements-txt"
alias rex=". rex"

This enables sourced mode of the CLI execution and allows the CLI to activate or deactivate your virtual environment if required.

Setup Project

To set up a VirtualEnv-based project, simply type:

rex init

Or, achieve the same effect more easily with aliases:

rex i

Note: The changes made to pip scripts will not affect the ordinary pip workflow after uninstalling to-requirements.txt.

Aliases

There are a few aliases available to use instead of rex command:

  • requirements-txt - legacy command.
  • rt - legacy command shortened.

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

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.14
File Size Uploaded
to_requirements_txt-2.0.14.tar.gz 22.3 kB Details

Built distribution (wheel)

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

Total release size: 60.4 kB

Release files / to_requirements_txt-2.0.14.tar.gz

Download URL to_requirements_txt-2.0.14.tar.gz
Size 22.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ab25a6ed3f77d015e5612cae618029af82e0b25b79741f1c45bf6031ce3687f8
BLAKE2b-256 checksum
How to use checksums
1a11b77f0aae4333d21bbcfc0e4b9974cff4470b668ed71e72bbfac9c7a2b969
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.22

Release files / to_requirements_txt-2.0.14-py3-none-any.whl

Download URL to_requirements_txt-2.0.14-py3-none-any.whl
Size 38.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
97f7489cbe90c6fbf6bc9bdb0af525fe5a57914f13817a21d59e6782486c4a44
BLAKE2b-256 checksum
How to use checksums
f56c9fecdb1c995e45f3669499efb3ab2d9f4ccf7907a2e90547ec6d5c79e529
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.22

Release history Release notifications | RSS feed

This release

2.0.14 This release

2 release files

2.0.9

2 release files

2.0.8

2 release files

2.0.7

2 release files

2.0.6

2 release files

2.0.5

2 release files

2.0.4

2 release files

2.0.3

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.10

2 release files

1.1.9

2 release files

1.1.8

2 release files

1.1.7

2 release files

1.1.6

2 release files

1.1.5

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.1

2 release files

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