Python tool of the day: yolk

I just stumbled upon yolk.

It does a bunch of things related to package management, but the simplest and arguably most useful is to just list installed packages.

marcabramowitz@Marc-Abramowitzs-MacBook-Pro:~$ yolk -l
Django          - 1.3          - active development (/usr/local/lib/python2.7/site-packages)
Python          - 2.7.1        - active development (/usr/local/Cellar/python/2.7.1/lib/python2.7/lib-dynload)
distribute      - 0.6.16       - active development (/usr/local/lib/python2.7/site-packages)
ipython         - 0.10.2       - active development (/usr/local/lib/python2.7/site-packages)
meld3           - 0.6.7        - active development (/usr/local/lib/python2.7/site-packages)
mercurial       - 1.8.2        - active development (/usr/local/lib/python2.7/site-packages)
pip             - 1.0.1        - active development (/usr/local/lib/python2.7/site-packages)
pyodbc          - 2.1.8        - active development (/usr/local/lib/python2.7/site-packages)
setuptools      - 0.6c11       - active development (/usr/local/lib/python2.7/site-packages)
supervisor      - 3.0a10       - active development (/usr/local/lib/python2.7/site-packages)
virtualenv      - 1.6          - active development (/usr/local/lib/python2.7/site-packages)
virtualenvwrapper - 2.7.1        - active development (/usr/local/lib/python2.7/site-packages)
wsgiref         - 0.1.2        - active development (/usr/local/Cellar/python/2.7.1/lib/python2.7)
yolk            - 0.4.1        - active development (/usr/local/lib/python2.7/site-packages)

Although now that I think about it, you could get almost the same info from pip:

marcabramowitz@Marc-Abramowitzs-MacBook-Pro:~$ pip freeze
Django==1.3
distribute==0.6.15
ipython==0.10.2
meld3==0.6.7
mercurial==1.8.2
pyodbc==2.1.8
supervisor==3.0a10
virtualenv==1.6
virtualenvwrapper==2.7.1
wsgiref==0.1.2
yolk==0.4.1

though yolk can do some other nice things like display dependencies:

marcabramowitz@Marc-Abramowitzs-MacBook-Pro:~$ yolk -d supervisor
supervisor 3.0a10
  meld3>=0.6.5

and entry points:

marcabramowitz@Marc-Abramowitzs-MacBook-Pro:~$ yolk --entry-points paste.paster_create_template
paste.deploy.paster_templates
   paste_deploy = paste.deploy.paster_templates:PasteDeploy

paste.script.templates
   basic_package = paste.script.templates:BasicPackage

pylons.util
   pylons_minimal = pylons.util:MinimalPylonsTemplate

pylons.util
   pylons = pylons.util:PylonsTemplate

and querying for the latest goodies on pypi:

(yolk)marcabramowitz@Marc-Abramowitzs-MacBook-Pro:~/python/virtualenvs/yolk$ yolk --latest-releases=4
django-dynamic-choices 0.1.6
pydub 0.4.2
collective.portlet.calendar 0.5
sslsnoop 0.7.1
TexDO 0.1.1
haystack 0.7
thumbor 0.7.12
webapp2 1.2
django-thumbnail-works 0.2.1
Beacon 1.3-alpha

Leave a Reply

Your email address will not be published.