pip sala bim是一个助手,可以从代码中猜测pip依赖关系,而不需要使用需求文件。
pipsalabim的Python项目详细描述
Pip Sala Bim is an assistant to guess your pip dependencies from your code, without using a requirements file.
pip sala bim将告诉您需要安装哪些包来满足 你的项目。它使用一个简单的ast visitor[1]来检测导入和PyPIContents 搜索包含这些导入的包。
有关详细信息,请阅读full documentation。
开始
安装
pipsalabim程序是用python编写的,托管在PyPI上。因此,您可以使用 pip安装稳定版本:
$ pip install --upgrade pipsalabim
如果要安装开发版本(不推荐),可以安装 来自github的directlty如下:
$ pip install --upgrade https://github.com/LuisAlejandro/pipsalabim/archive/master.tar.gz
使用量
pipsalabim非常容易使用。转到python项目并按如下方式执行 开始猜测您的依赖关系:
$ cd your-python-project/ $ pipsalabim report --help usage: pipsalabim report [-h] [-r] optional arguments: -h, --help show this help message and exit -r, --requirements Format output for requirements.txt file.
在生成报告之前,您需要运行“pipsalabim update”。
获取帮助
如果您有任何疑问或问题,请联系我们的Gitter Chat寻求帮助。你也可以 在StackOverflow(标记为pipsalabim)上提出问题,或者在luis@huntingbears.com.ve给我发一封电子邮件。
贡献
有关详细信息,请参见CONTRIBUTING.rst。
发布历史记录
有关详细信息,请参见HISTORY.rst。
用:heart:和:hamburger:
制作我叫路易斯(@LuisAlejandro),我是一个自由的 居住在委内瑞拉马拉凯的开源软件开发人员。
如果你喜欢我的工作,请在Patreon,Flattr上支持我,或者通过PayPal捐款, 这样我就能继续做我喜欢的事。
Blog huntingbears.com.ve · GitHub @LuisAlejandro · Twitter @LuisAlejandro
[1] | AST refers to an Abstract Syntax Tree, you can read more on https://en.wikipedia.org/wiki/Abstract_syntax_tree |