python包管理工具yolk_Python yolk包_程序模块 - PyPI - Python中文网

Yolk是一个Python工具,用于获取已安装Python包的信息,并查询PyPI上的可用包。它可以帮助用户了解包的状态,如活跃状态、非活跃状态或开发状态,并显示是否有更新版本可用。本文介绍如何使用Yolk的各种命令来查询包的详细信息。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

yolk是一个python工具,用于获取有关已安装的python包的信息,并在pypi(python包索引)上查询可用的包。

您可以通过查询pypi来查看哪些包是活动的、非活动的或处于开发模式中的,并显示哪些包具有较新的可用版本。

用法示例:$ 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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值