Skip to main content

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

Metadata

Release files for sort-requirements 1.3.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sort-requirements 1.3.3
File Size Uploaded Provenance Actions
sort_requirements-1.3.3.tar.gz 11.1 kB Without provenance Details for sort_requirements-1.3.3.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for sort-requirements 1.3.3
File Interpreter ABI Platform Actions
sort_requirements-1.3.3-py3-none-any.whl Python 3 none any Details for sort_requirements-1.3.3-py3-none-any.whl
sort_requirements-1.3.3-py2-none-any.whl Python 2 none any Details for sort_requirements-1.3.3-py2-none-any.whl

Total release size: 31.4 kB

Release files / sort_requirements-1.3.3.tar.gz

Download URL sort_requirements-1.3.3.tar.gz
Size 11.1 kB
Tags Source
SHA-256 checksum
How to use checksums
4b99810207868fdcbe3456f71f581e5f19b52df936b1ab059c3f7bdf42e5ab75
BLAKE2b-256 checksum
How to use checksums
8b695dbb7014184f46d1b02b4227866f13c7be35d6ef2df907d68bd8ae933bf7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.20

Release files / sort_requirements-1.3.3-py3-none-any.whl

Download URL sort_requirements-1.3.3-py3-none-any.whl
Size 10.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
53e3653c62bee7140ffe8e48bd6eab0788526fc1cf251782039faaa0f20a761d
BLAKE2b-256 checksum
How to use checksums
8bb781443a26a0f950e296a8e8c03e1358e29cff3a1a78c93ba8cb48214fa8f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.20

Release files / sort_requirements-1.3.3-py2-none-any.whl

Download URL sort_requirements-1.3.3-py2-none-any.whl
Size 10.2 kB
Tags Python 2
SHA-256 checksum
How to use checksums
68ae7bbe64210a4211692dff2d08598ecbdcf50c56703399a9f0c62be578962d
BLAKE2b-256 checksum
How to use checksums
ce2dab7d274f87c23c9f612a47f2fa1c8fa6ed514d9b8e23445941f7c0e72fd9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.20

Security for sort-requirements 1.3.3

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.

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