A Python module for the Zencoder API
Eventually I'll get around to putting this in the cheeseshop, when that happens you can install with easy_install: easy_install zencoder or with pip: pip install zencoder
zencoder-py depends on httplib2, and uses the json module and will depend on some package for xml when I get around to supporting it.
Install httplib2 with pip or easy_install.
from zencoder import Zencoder
zen = Zencoder('abc123') # enter your api key
# creates an encoding job with the defaults
job = zen.job.create('http://input-file/movie.avi')
print job.code
print job.body
print job.body['id']
# get the transcode progress of the first output
progress = zen.output.progress(job.body['outputs'][0]['id'])
print progress.body
Note: If you set the ZENCODER_API_KEY environment variable to your api key, you don't have to provide it when initializing Zencoder.