Skip to content

Instantly share code, notes, and snippets.

@skettler
skettler / ppa_stats.py
Created October 2, 2011 20:32 — forked from rgl/ppa_stats.py
outputs the download count of a PPA
# this outputs the download count of a PPA
#
# See https://api.launchpad.net/+apidoc/devel.html#binary_package_publishing_history
# See https://help.launchpad.net/API/launchpadlib
from launchpadlib.launchpad import Launchpad
cachedir = '/home/rgl/.launchpadlib/cache/'
launchpad = Launchpad.login_anonymously('just testing', 'production', cachedir)