skip to navigation
skip to content

Not Logged In

pandora_client 0.2.102

pandora_client is a commandline client for pan.do/ra. You can use it to import videos into a pan.do/ra system. It is currently known to work on Linux and Mac OS X.

Latest Version: 0.2.202

pandora_client - python client and libary to access a pan.do/ra instances

For more info on using pandora_client, check
http://wiki.0x2620.org/wiki/pandora_client

pandora client example:
import pandora_client
#example config.json
'''
{
"url": "http://localhost:8000/api/",
"username": "username",
"password": "password",
"cache": "~/.ox/client.sqlite",
"media-cache": "~/.ox/media",
"volumes": {
"volumename": "/media/2010/Movies"
}
}
'''
c = pandora_client.Client('config.json')
c.scan() #scans all volumes for files and updates cache db
c.sync() #syncs cached file info with site, and encodes and uploads requested media
c.clean() #cleanup transcodes created druing sync to save disk space


just using the API:
api = pandora_client.API("http://localhost:8000/api/")
r = api.find(
query={'conditions':[]},
keys=['title', 'year'],
range=[0, 100]
)
for i in r['data']['items']:
...

api documentation is available as python docstrings.
i.e. in ipython:
api.find?
(alternatively you can open the api url in a browser to read further documentation)
 
File Type Py Version Uploaded on Size
pandora_client-0.2.102.tar.gz (md5) Source 2012-11-14 11KB
  • Downloads (All Versions):
  • 12 downloads in the last day
  • 917 downloads in the last week
  • 3649 downloads in the last month