V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
Damnever
V2EX  ›  Python

一个 Python requirements 工具 -- pigar

  •  
  •   Damnever ·
    damnever · Oct 1, 2015 · 3956 views
    This topic created in 3866 days ago, the information mentioned may be changed or developed.

    pipreqs 很像,但是更好,pipreqs把所有的 Python 2/3 的模块都混在一起写在文件里,比如concurrent.futures 在 python 3.2 里成了标准库模块,但是在 python 2 里是可以安装的(futures),所以不能检测出 python 2 需要依赖 futures 模块,这个工具解决了这种问题。

    然后,阅读别人的源码的时候,看到bs4/MySQLdb这样的模块却不能在 pypi 里找到,实际上包的名字可能是beautifulsoup4/mysql-python,这个工具也可以通过导入名来搜索安装包的名字。

    希望对大家有用。

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

    5 replies    2016-07-01 17:20:53 +08:00
    tmdwex06895
        1
    tmdwex06895  
       Oct 2, 2015 via Android
    不错
    jejer
        2
    jejer  
       Oct 2, 2015
    不错 支持
    holyshawn
        3
    holyshawn  
       Oct 2, 2015
    支持,省了 google 的时间
    Damnever
        4
    Damnever  
    OP
       Oct 5, 2015 via iPhone
    ZoomQuiet
        5
    ZoomQuiet  
       Jul 1, 2016
    的确非常有用, 已经收录到了 蠎加载 78 |蠎周刊 |汇集全球蠎事儿 !-)
    http://weekly.pychina.org/importpython/importpython-78.html
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2306 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 01:34 · PVG 09:34 · LAX 18:34 · JFK 21:34
    ♥ Do have faith in what you're doing.