Yolk是一个Python工具,用于获取有关已安装的Python包的信息,并查询可用于PyPI(Python包索引)的包。 yolk3k是原来yolk的分支。 yolk3k添加Python 3支持(同时维护Python 2支持)。 它还增加了附加功能。
首先是安装时的可用版本查询
yolk -V ipython
yolk -V django
基本使用
$ yolk --upgrade
Upgrade all packages
$ yolk --upgrade --user
Upgrade user packages
$ yolk -l
List all installed Python packages
$ yolk -a
List only the activated packages installed (Activated packages are
normal packages on sys.path you can import)
$ yolk -n
List only the non-activated (--multi-version) packages installed
$ yolk -l -f License,Author nose==1.0
Show the license and author for version 1.0 of the package `nose`
$ yolk --entry-map nose
Show entry map for the nose package
$ yolk --entry-points nose.plugins
Show all setuptools entry points for nose.plugins
查询PyPI时的一些选项
$ yolk -U pkg_name
Shows if an update for pkg_name is available by querying PyPI
$ yolk -U
Checks PyPI to see if any installed Python packages have updates
available.
$ yolk -F Paste
Download source tarball for latest version of Paste to your current
directory
$ yolk -F Paste -T svn
Do a subversion checkout for Paste to a directory named Paste_svn in
your current directory.
$ yolk -L 2
Show list of CheeseShop releases in the last two hours
$ yolk -C 2
Show detailed list of changes in the CheeseShop in the last two hours
$ yolk -M Paste==1.0
Show all the metadata for Paste version 1.0
$ yolk -M Paste
Show all the metadata for the latest version of Paste listed on PyPI
$ yolk -D cheesecake
Show all (source, egg, svn) URL's for the latest version of cheesecake
packages
$ yolk -T source -D cheesecake
Show only source code releases for cheesecake
$ yolk -H twisted
Launches your web browser at Twisted's home page

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请联系我们,一经查实,本站将立刻删除。
如需转载请保留出处:https://51itzy.com/kjqy/35747.html