No description
Find a file
2013-02-10 14:37:36 +05:30
bin make sure api url ends with / 2012-04-19 17:47:51 +02:00
pandora_client kill ffmpeg if client is killed 2013-02-10 14:37:36 +05:30
config.example.json better extract and file locating 2012-01-04 12:31:43 +05:30
README update readme 2012-02-21 15:17:40 +05:30
setup.py update description and url 2012-06-22 12:10:45 +02:00

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)