V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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 · 2015-10-01 22:52:50 +08:00 · 3334 次点击
    这是一个创建于 3101 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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 条回复    2016-07-01 17:20:53 +08:00
    tmdwex06895
        1
    tmdwex06895  
       2015-10-02 07:14:47 +08:00 via Android
    不错
    jejer
        2
    jejer  
       2015-10-02 12:04:04 +08:00
    不错 支持
    holyshawn
        3
    holyshawn  
       2015-10-02 19:41:46 +08:00
    支持,省了 google 的时间
    Damnever
        4
    Damnever  
    OP
       2015-10-05 09:51:07 +08:00 via iPhone
    ZoomQuiet
        5
    ZoomQuiet  
       2016-07-01 17:20:53 +08:00
    的确非常有用, 已经收录到了 蠎加载 78 |蠎周刊 |汇集全球蠎事儿 !-)
    http://weekly.pychina.org/importpython/importpython-78.html
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5329 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 08:08 · PVG 16:08 · LAX 01:08 · JFK 04:08
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.