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.3.tar.gz (11.1 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.3-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

sort_requirements-1.3.3-py2-none-any.whl (10.2 kB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: sort_requirements-1.3.3.tar.gz
  • Upload date:
  • Size: 11.1 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.3.tar.gz
Algorithm Hash digest
SHA256 4b99810207868fdcbe3456f71f581e5f19b52df936b1ab059c3f7bdf42e5ab75
MD5 76b7b9cdb18c46e2ee1e7d908451d498
BLAKE2b-256 8b695dbb7014184f46d1b02b4227866f13c7be35d6ef2df907d68bd8ae933bf7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sort_requirements-1.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 53e3653c62bee7140ffe8e48bd6eab0788526fc1cf251782039faaa0f20a761d
MD5 d3180b6809b2081886bad754281681e8
BLAKE2b-256 8bb781443a26a0f950e296a8e8c03e1358e29cff3a1a78c93ba8cb48214fa8f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sort_requirements-1.3.3-py2-none-any.whl
Algorithm Hash digest
SHA256 68ae7bbe64210a4211692dff2d08598ecbdcf50c56703399a9f0c62be578962d
MD5 3163438d7a7f91a1322ed68a35863bf9
BLAKE2b-256 ce2dab7d274f87c23c9f612a47f2fa1c8fa6ed514d9b8e23445941f7c0e72fd9

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