Skip to main content

Automatically add and delete modules to requirements.txt installing them using pip.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

toreqs-2.0.14.tar.gz (22.3 kB view details)

Uploaded Source

Built Distribution

toreqs-2.0.14-py3-none-any.whl (37.9 kB view details)

Uploaded Python 3

File details

Details for the file toreqs-2.0.14.tar.gz.

File metadata

  • Download URL: toreqs-2.0.14.tar.gz
  • Upload date:
  • Size: 22.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.22

File hashes

Hashes for toreqs-2.0.14.tar.gz
Algorithm Hash digest
SHA256 036774016161b28b2055b8af6069980613790a39fe283b2a85c33539235b2544
MD5 756ec2666bc459717e14d95ee3150dd6
BLAKE2b-256 b567cd37ea0b916ad6d6737b39a342b12445baf519a5d152ffeef48372d8f163

See more details on using hashes here.

File details

Details for the file toreqs-2.0.14-py3-none-any.whl.

File metadata

  • Download URL: toreqs-2.0.14-py3-none-any.whl
  • Upload date:
  • Size: 37.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.22

File hashes

Hashes for toreqs-2.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 47a15ce81ddfad8e1509a9097b9c98b12f1a9592bdf0156da441c865be0d8073
MD5 2af68eca663857eb43ab5bf44d52c47e
BLAKE2b-256 c41950081ae17d1e63fc13affa5ebcc5399dc5ffeccf57e83599cad20277f092

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page