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)
#### 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:
[install pip](https://pip.pypa.io/en/latest/installing.html)
[pypi](https://pypi.python.org/pypi)
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
Built Distribution
File details
Details for the file sort_requirements-1.3.0.tar.gz
.
File metadata
- Download URL: sort_requirements-1.3.0.tar.gz
- Upload date:
- Size: 3.6 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8038315f8932b1496567f1241ea482aa900845d5a5116c7d23835e783a3a2082 |
|
MD5 | f767a0c3eadc88e10f4e42618e1e871a |
|
BLAKE2b-256 | f6ee27fed6c658e73598356f8e758a116adacb72f7e50d34fc27fc7f1d2beed3 |
File details
Details for the file sort_requirements-1.3.0-py3-none-any.whl
.
File metadata
- Download URL: sort_requirements-1.3.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56de1172f5656aa9a0dfb7575913fff3d9ab80090e6bd4095fd6feec312c7d7c |
|
MD5 | ec7b3f9d448bf02b12f6e3bb8dfe609f |
|
BLAKE2b-256 | 097fc33ee81896b2393fa2a9f00a87fa9640aaebbbd80b6d19ebae1b898b931d |