您的位置:首页 > 编程语言 > Python开发

开发利器_Pigar.快速为Python项目生成依赖文件requirements.txt?

2016-09-24 13:58 841 查看
项目名称:

pigar

项目地址:
https://github.com/damnever/pigar

使用说明:
usage: pigar [-h] [-v] [-u] [-s NAME [NAME ...]] [-c [PATH]] [-l LOG_LEVEL]
[-i DIR [DIR ...]] [-p SAVE_PATH] [-P PROJECT_PATH]

Python requirements tool -- pigar, it will do only one thing at each time.
Default action is generate requirements.txt in current directory.

optional arguments:
-h, --help          show this help message and exit
-v, --version       show pigar version information and exit
-u, --update        update database, use it when pigar failed you, exit when
action done
-s NAME [NAME ...]  search package name by import name, use it if you do not
know import name come from which package, exit when
action done
-c [PATH]           check requirements for the latest version. If file path
not given, search *requirements.txt in current
directory, if not found, generate file requirements.txt,
exit when action done
-l LOG_LEVEL        show given level log messages, argument can be (ERROR,
WARNING, INFO), case-insensitive
-i DIR [DIR ...]    given a list of directory to ignore, relative directory,
*used for* -c and default action
-p SAVE_PATH        save requirements in given file path, *used for* default
action
-P PROJECT_PATH     project path, which is directory, *used for* default
action


有图有相:



说明: 如果你折腾别人的项目的时候遇到"Import Error: xxx",那么你可以如上神器pigar来搜索项目中导入名到底来自哪个安装包,在阅读别人源码的时候也非常有用.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  开发利器 Pigar