Web browser, Python > 2.5
Andrew Moffat email@example.com. Want to collaborate on something cool? Drop me a line.
$ python pypandora.pyEnjoy! Report any bugs to the project page.
Most people will probably want to tweak the html interface. To do that, you should know a few things: the html is embedded in pypandora.py, in the variable name "html_page". It's zlib.compressed and base64.b64encoded to save space. Fortunately, getting it out is easy (that's what she said). Just run:
$ python pypandora.py --exportto export the html to index.html locally. You can then use this file as a base to make your changes. When you run pypandora, if it sees an index.html in its own directory, it will use that instead of the html_page variable. If you want to re-embed your index.html page back into pypandora.py, just run:
$ python pypandora.py --importand pypandora will slurp up index.html, zlib.compress and base64 encode it, and embed it in pypandora.py
If you choose to re-distribute pypandora, PLEASE run the following command before doing so:
$ python pypandora.py --cleanThis will clean out your saved settings from pypandora (like your login info!) You really don't want to be sharing that stuff with everyone.