Socket
Socket
Sign inDemoInstall

sort-requirements

Package Overview
Dependencies
0
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    sort-requirements

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


Maintainers
1

Readme

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 therapist==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

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc