用于查询系统上安装的pypi和python包的命令行工具。

yolk1977的Python项目详细描述


Installation

$ pip install --upgrade yolk1977

Summary

yolk是一个python工具,用于获取有关已安装python包的信息。 以及查询pypi(python包索引)上可用的包。yolk3k 是原始yolk的叉。yolk3k添加了python 3支持(而 维护python 2支持)。它还添加了其他功能。yolk1977yolk3kfork的一个fork,它修复了一个恼人的bug,其中 glitchy url fetch status会中断整个yolk -U进程。

您可以看到哪些包处于活动状态、非活动状态或处于开发模式,以及 通过查询pypi显示哪些版本更高。

用法示例:

$ 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

Useful tips

在pypi的描述中检查无效的structuredtext(使用rstcheck):

$ yolk --query-metadata=pip --fields=description | rstcheck -

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java JoGL不在循环中绘制   java检测装箱类   java如何让Firestore在后台同步?   java If-else错误我不理解这个错误   java在使用Kotlin的方法中引发异常   循环x%2>0在java中意味着什么?   Java如何在while循环中包含switch语句菜单   将java JSONObject转换为javascript   java如何使用compositeid类元素?   JavaAmazonS3更快地加载音乐文件   在Tomcat 6中将java web应用程序作为域名的根   JAVAutil。扫描器Java扫描器对象跳过行?   java如何发现哪些类使用Eclipse实现了类的方法?   java的灵活性有问题。invokeLater()更新GUI   java协议缓冲区:toByteString()返回空的ByteString   java如何在具有不同常量的代码上使用Extract方法?   java使用TableLayout,按钮正在脱离边缘