PyKota is a nifty Python-based printer quota and billing software for CUPS that can also be massaged into doing accounting.
PyKota on Mac OS X with Fink
Getting the source
PyKota's official source and binary releases are available behind a $/€ 25 paywall, but you can also get them from Subversion for free. The site also has sparse instructions for OS X.
Download PyKota 1.25:
svn co svn://svn.librelogiciel.com/pykota/tags/1.25 pykota
Download pkpgcounter 2.17:
svn co svn://svn.librelogiciel.com/pkpgcounter/tags/2.17 pkpgcounter
We’ll return to these after the dependencies.
Installing the dependencies
Some of the base dependencies are included with Fink. I used Python 2.5:
fink install python2.5 pysqlite2-py25 pil-py25 python-mx-py25
Next, the stuff that's not in Fink. Download and install (using sudo python2.5 setup.py install):
Installing PyKota
From your download folder:
cd pkpgcounter python2.5 setup.py build && sudo python2.5 setup.py install cd ../pykota python2.5 setup.py build && sudo python2.5 setup.py install cd /usr/libexec/cups/backend ln -s ../../../../sw/share/pykota/cupspykota
Installation is done. You can now configure PyKota using the instructions in the README file included with the distribution. Remember to comment out the PostgreSQL section in the configuration and enable SQLite3, since we've installed those dependencies with Fink above.
