A thin wrapper around requests for vimeo
Project description
vimeo-wrapper
=============
A thin python wrapper for the vimeo API with upload-capabilities. It took me quite a while to get this figured out; the Vimeo
API is rather PHP-centric.
Installation:
pip install git+http://github.com/okke-formsma/vimeo-wrapper#egg=vimeo
Usage:
vimeo = Vimeo(access_token, access_token_secret, consumer_key, consumer_secret)
get vimeo info on a video
info = vimeo.request('vimeo.videos.getInfo', data=dict(video_id=video_id))
Perform any request like so: (the list of available requests can be found at [the vimeo api site](https://developer.vimeo.com/apis/advanced/methods))
result = vimeo.request(method, data=...)
upload video file
video_id = vimeo.upload(file="/home/okke-formsma/videos/test.mov")
set video metadata
vimeo.request('vimeo.videos.setTitle', data={
'video_id': video_id,
'title': "Vimeo-wrapper video",
})
vimeo.request('vimeo.videos.setDescription', data={
'video_id': video_id,
'description': "It is the best!",
})
vimeo.request('vimeo.videos.setDownloadPrivacy', data={
'video_id': video_id,
'download': False
})
=============
A thin python wrapper for the vimeo API with upload-capabilities. It took me quite a while to get this figured out; the Vimeo
API is rather PHP-centric.
Installation:
pip install git+http://github.com/okke-formsma/vimeo-wrapper#egg=vimeo
Usage:
vimeo = Vimeo(access_token, access_token_secret, consumer_key, consumer_secret)
get vimeo info on a video
info = vimeo.request('vimeo.videos.getInfo', data=dict(video_id=video_id))
Perform any request like so: (the list of available requests can be found at [the vimeo api site](https://developer.vimeo.com/apis/advanced/methods))
result = vimeo.request(method, data=...)
upload video file
video_id = vimeo.upload(file="/home/okke-formsma/videos/test.mov")
set video metadata
vimeo.request('vimeo.videos.setTitle', data={
'video_id': video_id,
'title': "Vimeo-wrapper video",
})
vimeo.request('vimeo.videos.setDescription', data={
'video_id': video_id,
'description': "It is the best!",
})
vimeo.request('vimeo.videos.setDownloadPrivacy', data={
'video_id': video_id,
'download': False
})
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
vimeo-wrapper-0.4.4.tar.gz
(3.8 kB
view details)
File details
Details for the file vimeo-wrapper-0.4.4.tar.gz
.
File metadata
- Download URL: vimeo-wrapper-0.4.4.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c898fa1ef18f8a46b2dda95462817651a3df1cb71497b8a62a46d948d3c81630 |
|
MD5 | 4cdb408795d8e4a371a9be488089416b |
|
BLAKE2b-256 | abe4a039eb662713fcd4834c989125fef8943eb3cf2bf666596ad081835245a3 |