Giter VIP home page Giter VIP logo

sort-requirements's Introduction

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

sort-requirements's People

Contributors

brotich avatar rehandalal avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.