为 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

Web Anatomy

Web Anatomy

Robert Hoekman Jr.、Jared Spool / New Riders / 2009-12-11 / USD 39.99

At the start of every web design project, the ongoing struggles reappear. We want to design highly usable and self-evident applications, but we also want to devise innovative, compelling, and exciting......一起来看看 《Web Anatomy》 这本书的介绍吧!

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

在线XML、JSON转换工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具