Skip to main content

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.

Project description

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)


== Distributed encoding ==
pandora_client can distribute the encoding to multiple nodes
on a local network or multiple encodings on the same host.

to do this you need to install additional dependencies:
apt-get install python-twisted python-requests
(on ubuntu 12.04 you need a newer version of requests,
i.e: sudo easy_install -U requests)

now run one node in server mode:
pandora_client server

and start the other nodes with:
pandora_client client http://SERVER_IP:8789

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pandora_client-0.2.183.tar.gz (17.7 kB view details)

Uploaded Source

File details

Details for the file pandora_client-0.2.183.tar.gz.

File metadata

File hashes

Hashes for pandora_client-0.2.183.tar.gz
Algorithm Hash digest
SHA256 246d584fcaaca8b18ce4163bc6492d6aac8670076c9051d00b11b2a494f9db26
MD5 d902e102107a9fa449aa1b98c1b95bed
BLAKE2b-256 54da4c80d87288c50b709da84a5aa096e1550af46f6ad98136d7cbc8e978120c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page