launchpad-karma
is a a simple script to track and graph Launchpad
karma over time.
It's meant to be run on a daily basis (usually by cron
). At every run, it
collects the karma for the current day and stores it in a SQLite database. Then
it regenerates an HTML page with graphs (along with related JavaScript and css
files) in the specified target directory.
- get the source tree:
$ git clone https://github.com/albertodonato/launchpad-karma
-
install the following dependencies:
- Jinja2
- launchpadlib
This can be done via packages from your distribution or with
pip
:
$ cd launchpad-karma
$ pip install -R requirements.txt
-
copy
launchpad-karma.ini.template
tolaunchpad-karma.ini
and edit it setting theuser
key to your launchpad username. The target directory for graphs and and the (maximum) number of months to plot can also be changed. -
edit your crontab with
crontab -e
and adding something like this (which runs the script at 23:30 every day):
# m h dom mon dow command
30 23 * * * /home/ack/launchpad-karma/launchpad-karma