在需求文本文件中排序python依赖项的简单脚本。

sort-requirements的Python项目详细描述


在需求文本文件中排序python依赖项的简单脚本。

啊![pypi](https://img.shields.io/pypi/v/sort-requirements.svg) 啊![pypi-python版本](https://img.shields.io/pypi/pyversions/sort-requirements.svg

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

####安装

使用[pip](https://github.com/pypa/pip)可以轻松地安装此工具。 假设安装了pip,只需从命令行运行以下命令:

` $ pip install sort_requirements `

此命令将从 [python包索引](https://pypi.org/project/sort-requirements/) 把它安装到你的系统上。关于pip和pypi的更多信息可以是 在此处找到:

或者,您可以使用setup.py从发行版安装 脚本:

` $ python setup.py install `

您还可以安装 [开发版本](https://github.com/rehandalal/sort-requirements/tarball/master#egg=sort-requirements-dev) 运行以下命令:

` $ pip install therapist==dev `

或从 [Git回购](https://github.com/rehandalal/therapist/):

` $ git clone https://github.com/rehandalal/sort-requirements.git $ mkvirtualenv sort-requirements $ pip install --editable . `

####用法

要使用此工具,只需从命令行运行以下命令:

` $ sort-requirementsmy-requirements-file.txt `

请确保将my requirements file.txt替换为 需求文件。

如果你只想得到一个需要排序的文件列表 如果要对文件进行任何更改,请使用–check标志:

` $ sort-requirements--checkmy-requirements-file.txtanother-file.txt `

要获得更多选项,请使用–help标志:

` $ sort-requirements--help `

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java使用split函数分割字符串,但没有得到期望的结果   未找到包含derby数据库嵌入架构的sql Java桌面应用程序错误   java elasticsearch vs solr用于定制全文搜索系统   java Android:创建没有startOffset的动画延迟?   java如何查看其他应用程序接收的数据?   java如何在Linux中使用D和classpath选项运行jar文件   java和域设计最佳实践   具有相同内存位置的java数组,将显示为输出   连接到java中的elasticsearch?   Java Playframework重定向到带有Json负载的外部url   java无法在Android平台上使用InputStream为蓝牙socket创建ObjectInputStream   使用POI将Excel日期转换为Java日期,年份未正确显示   oracle从数据库层还是Java层调用webservice?