Skip to main content

A simple script to sort python dependencies in requirement text files.

Project description

sort-requirements

A simple script to sort python dependencies in requirement text files.

PyPI PyPI - Python Version

CircleCI

Installation

Installing this tool is easily done using pip. Assuming pip is installed just run the following from the command line:

$ pip install sort-requirements

This command will download the latest version from the Python Package Index and install it to your system. More information about pip and pypi can be found here:

Alternatively you can install from the distribution using the setup.py script:

$ python setup.py install

You could also install the development version by running the following:

$ pip install sort-requirements==dev

Or simple install from a clone of the git repo:

$ git clone https://github.com/rehandalal/sort-requirements.git
$ mkvirtualenv sort-requirements
$ pip install --editable .

Usage

To use this tool simply run the following from the command line:

$ sort-requirements my-requirements-file.txt

Please make sure to replace my-requirements-file.txt with the path to your requirements file(s).

If you only want to get a list of files that need sorting, without actually writing any changes to the files, use the --check flag:

$ sort-requirements --check my-requirements-file.txt another-file.txt

For even more options use the --help flag:

$ sort-requirements --help

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

sort_requirements-1.3.2.tar.gz (11.4 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

sort_requirements-1.3.2-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

sort_requirements-1.3.2-py2-none-any.whl (10.5 kB view details)

Uploaded Python 2

File details

Details for the file sort_requirements-1.3.2.tar.gz.

File metadata

  • Download URL: sort_requirements-1.3.2.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.20

File hashes

Hashes for sort_requirements-1.3.2.tar.gz
Algorithm Hash digest
SHA256 6d3f6eb0a010a0cf6aa3f7868f187e2bbc95b56aca51de203b51d80aa6d9dfb5
MD5 91fd29324523a930e90300edf3fab15f
BLAKE2b-256 b68cbf1a0d390cd55a5f4ec6a0800368f039ea35e9a7697bb93dc3b88b71634d

See more details on using hashes here.

File details

Details for the file sort_requirements-1.3.2-py3-none-any.whl.

File metadata

File hashes

Hashes for sort_requirements-1.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e21f27cc0b2d8c3ea0b394dfdb298bb65d6594124555f36a5c752e02566a323a
MD5 541a3b495afc14ebd208b4be9b8c501f
BLAKE2b-256 e10054c203c0910030383e07d36fa6fb2bb9fe80baffbe1abbb3c4b5c18ae0a7

See more details on using hashes here.

File details

Details for the file sort_requirements-1.3.2-py2-none-any.whl.

File metadata

File hashes

Hashes for sort_requirements-1.3.2-py2-none-any.whl
Algorithm Hash digest
SHA256 1e0f246ab89e0332248e8d4bc45102d37fd3058e0cac5ee45384ea4bb7a10065
MD5 ef797f84ac985eb0cec0ef250c9b6138
BLAKE2b-256 b6ee7f8c5f5d437e23fddf76049f5b4ae21001436913bc458570380f07432b74

See more details on using hashes here.

Supported by

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