Skip to main content

Command-line tool querying PyPI and Python packages installed on your system.

Project description

Installation

You can install yolk with easy_install yolk or install from the subversion repository with easy_install yolk==dev.

As of 0.0.7 yolk is in Gentoo’s Portage tree.

Summary

Yolk is a Python tool for obtaining information about packages installed by distutils, setuptools and easy_install and querying packages on PyPI (Python Package Index a.k.a. The Cheese Shop).

Yolk can list all the packages installed by distutils or setuptools on your system by >=Python2.5 or packages installed by setuptools if you have <=Python2.4. You can see which packages are active, non-active or in development mode and show you which have newer versions available by querying PyPI.

Usage Examples:

$ 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

These options query 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

Changes

0.3.0: Added -C and -L options for new PyPI XML-RPC methods changelog and updated_releases

Always check package name cache on disk before querying PyPi to see if a package exists and has proper case.

Added -F option to download source, egg or subversion checkouts.

Removed -L RSS feed option because the new updated_releases XML-RPC method is much nicer

Fixed ‘-D -T egg’ so it won’t return source if no egg is available

Major refactoring.

Removed dependency on elementtree

0.2.0: Added ‘svn’ type for -T

A kablillion bug fixes

0.1.0: You can now use -f with -M

More accurate URL’s with -D using setuptools

Ability to check for a single package with -U

Uses std Python logging module

Fixed bug so we have correct exit codes

0.0.7: New options: –entry-map and -entry-points

Improved results with –download-links

New plugin system. First plugin available: yolk-portage for Gentoo Linux.

-v option is now –version

-v is now a new option: –verbose

Many bug fixes.

0.0.6: Fix Windows problem which showed all pkgs in develop mode

on some systems.

Fix bad interpreter shebang in rss_feed.py example

Start using nose unit tests from setup.py

Use restructuredtext in docstrings

0.0.5: Show packages installed in ‘development’ mode.

Improved output of -l, -n and -a. You can get the previous (<=0.0.4) output by adding ‘-f Summary’

More sanity checking for various options.

Don’t throw exception if there is no package metadata

0.0.4: Added -U option to query PyPI for new versions of packages you have

installed

Requirements

  • setuptools

  • elementtree (For RSS feed option extra_requires [RSS])

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yolk-0.3.0.tar.gz (78.9 kB view details)

Uploaded Source

Built Distribution

yolk-0.3.0-py2.5.egg (45.9 kB view details)

Uploaded Source

File details

Details for the file yolk-0.3.0.tar.gz.

File metadata

  • Download URL: yolk-0.3.0.tar.gz
  • Upload date:
  • Size: 78.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for yolk-0.3.0.tar.gz
Algorithm Hash digest
SHA256 c598bf8e7140a3809c7692e7807ce9347ede7661ca801888a7112216d4cb59ea
MD5 29bf8329626576b1ab1387bb6226331d
BLAKE2b-256 edbbeb03640d0dc0372893adbce34629c19abb14b5af3bec8b711cd0dfb2afbd

See more details on using hashes here.

File details

Details for the file yolk-0.3.0-py2.5.egg.

File metadata

  • Download URL: yolk-0.3.0-py2.5.egg
  • Upload date:
  • Size: 45.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for yolk-0.3.0-py2.5.egg
Algorithm Hash digest
SHA256 26d93872af86575a61fbcbe95c0b50e4667eb83133fdf79eec045a065b89f052
MD5 d0b99ab1cf1afb58bf745135674e7201
BLAKE2b-256 27750c37ad6d090ac81b290787c891f587a84ca447dfdd34c8e942ca0b747797

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page