Skip to main content

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

Project description

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

![PyPI](https://img.shields.io/pypi/v/sort-requirements.svg) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/sort-requirements.svg)

[![CircleCI](https://img.shields.io/circleci/project/github/rehandalal/sort-requirements.svg)](https://circleci.com/gh/rehandalal/sort-requirements)

#### Installation

Installing this tool is easily done using [pip](https://github.com/pypa/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](https://pypi.org/project/sort-requirements/) 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](https://github.com/rehandalal/sort-requirements/tarball/master#egg=sort-requirements-dev) by running the following:

` $ pip install therapist==dev `

Or simple install from a clone of the [git repo](https://github.com/rehandalal/therapist/):

` $ 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.2.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

sort_requirements-1.2.0-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sort_requirements-1.2.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for sort_requirements-1.2.0.tar.gz
Algorithm Hash digest
SHA256 6116a8983417726a57b12c56731944d9fcaf7b63f33951a5bd7cf133619acf7a
MD5 d212d5d3065a61d7e9b0a571d0e0f470
BLAKE2b-256 f0e80c23c29062604fb360d40715efc285e469f189de39be64ce13389c14a8b3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sort_requirements-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for sort_requirements-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 66d20dcc0d17bfa9906b210df54cdec13e12a7ed71434534cc636fbd7f00f748
MD5 992b825a2c7dd8737a0f755a4c1afb71
BLAKE2b-256 d1639d1d3f1d2cb3ccf080b09c16dbf687329cc152f1fd30741e7553b51b844a

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