Integration library for Zencoder
Project description
# Zencoder
A Python module for the [Zencoder](http://zencoder.com) API.
## Installation
Install from PyPI using `easy_install` or `pip`.
## Dependencies
`zencoder-py` depends on [httplib2](http://code.google.com/p/httplib2/), and uses the `json` or `simplejson` module.
## Usage
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
# configure your outputs with dictionaries
iphone = {
'label': 'iPhone',
'url': 's3://output-bucket/output-file-1.mp4',
'width': 480,
'height': 320
}
web = {
'label': 'web',
'url': 's3://output-bucket/output-file.vp8',
'video_codec':, 'vp8'
}
# the outputs kwarg requires an iterable
outputs = (iphone, web)
another_job = zen.job.create(input_url, outputs=outputs)
**Note:** If you set the `ZENCODER_API_KEY` environment variable to your api key, you don't have to provide it when initializing Zencoder.
## Specifying the API Version
Set the version of the Zencoder API you want to use as the `api_version` keyword to the `Zencoder` object (defaults to `v2`):
```python
# set to version 1: https://app.zencoder.com/api/v1/
zen = Zencoder(api_version='v1')
# set to the edge version: https://app.zencoder.com/api/
zen = Zencoder(api_version='edge')
```
## Documentation
Docs are in progress, and hosted at Read the Docs: http://zencoder.rtfd.org
## Contributors
* [Senko Rasic](http://github.com/senko)
* [Josh Kennedy](http://github.com/kennedyj)
* [Issac Kelly](http://github.com/issackelly)
[![Build Status](https://secure.travis-ci.org/schworer/zencoder-py.png)](http://travis-ci.org/schworer/zencoder-py)
A Python module for the [Zencoder](http://zencoder.com) API.
## Installation
Install from PyPI using `easy_install` or `pip`.
## Dependencies
`zencoder-py` depends on [httplib2](http://code.google.com/p/httplib2/), and uses the `json` or `simplejson` module.
## Usage
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
# configure your outputs with dictionaries
iphone = {
'label': 'iPhone',
'url': 's3://output-bucket/output-file-1.mp4',
'width': 480,
'height': 320
}
web = {
'label': 'web',
'url': 's3://output-bucket/output-file.vp8',
'video_codec':, 'vp8'
}
# the outputs kwarg requires an iterable
outputs = (iphone, web)
another_job = zen.job.create(input_url, outputs=outputs)
**Note:** If you set the `ZENCODER_API_KEY` environment variable to your api key, you don't have to provide it when initializing Zencoder.
## Specifying the API Version
Set the version of the Zencoder API you want to use as the `api_version` keyword to the `Zencoder` object (defaults to `v2`):
```python
# set to version 1: https://app.zencoder.com/api/v1/
zen = Zencoder(api_version='v1')
# set to the edge version: https://app.zencoder.com/api/
zen = Zencoder(api_version='edge')
```
## Documentation
Docs are in progress, and hosted at Read the Docs: http://zencoder.rtfd.org
## Contributors
* [Senko Rasic](http://github.com/senko)
* [Josh Kennedy](http://github.com/kennedyj)
* [Issac Kelly](http://github.com/issackelly)
[![Build Status](https://secure.travis-ci.org/schworer/zencoder-py.png)](http://travis-ci.org/schworer/zencoder-py)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
zencoder-0.5.2.tar.gz
(10.2 kB
view details)
File details
Details for the file zencoder-0.5.2.tar.gz
.
File metadata
- Download URL: zencoder-0.5.2.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc313e462a7ab0086181dbef916abc742d6bb787557969e7b84cc780db2f371f |
|
MD5 | 5ed9d4085aa26b5a8c543b134dc4d22d |
|
BLAKE2b-256 | 7f8b278e80c730a1b5449f1a217383924ba104328a2e7242866bee0a93f6e1a7 |