为 Python 项目自动生成的依赖文件 Pigar

码农软件 · 软件分类 · 常用工具包 · 2019-08-15 14:56:52

软件介绍

Pigar 是为 Python 项目自动生成精确无误的依赖文件。

用 pip 安装:

$ [sudo] pip install pigar

pigar 能找区别不同 Python 版本之间的差异,非常精确,并找出依赖包在代码中的哪些位置引用了,这非常方便,可以发现某些无用却引用了的包:

$ pigar

# example/e1.py: 18
pkg_a == 3.3.3

# example/e2.py: 10
pkg_b == 1.1.1

如果你折腾别人的项目的时候遇到“Import Error: xxx”,那么你可以用下列方式来搜索这个导入名到底来自哪个安装包,在阅读别人源码的时候也非常有用:

$ pigar -s <import_name>

另外 pigar 也能检测依赖的最新版本。

详见:https://github.com/Damnever/pigar

本文地址:https://codercto.com/soft/d/12424.html

Getting Real

Getting Real

Jason Fried、Heinemeier David Hansson、Matthew Linderman / 37signals / 2009-11-18 / USD 24.99

Getting Real details the business, design, programming, and marketing principles of 37signals. The book is packed with keep-it-simple insights, contrarian points of view, and unconventional approaches......一起来看看 《Getting Real》 这本书的介绍吧!

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换