开发利器_Pigar.快速为Python项目生成依赖文件requirements.txt?
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了开发利器_Pigar.快速为Python项目生成依赖文件requirements.txt?相关的知识,希望对你有一定的参考价值。
项目名称:
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来搜索项目中导入名到底来自哪个安装包,在阅读别人源码的时候也非常有用.
本文出自 “ζ自动化运维开发之路ζ” 博客,请务必保留此出处http://xmdevops.blog.51cto.com/11144840/1856062
以上是关于开发利器_Pigar.快速为Python项目生成依赖文件requirements.txt?的主要内容,如果未能解决你的问题,请参考以下文章
java快速开发平台 二次开发 外包项目利器 springmvc SSM后台框架源码