A Python SDK for ArvanCloud API
Project description
arvan-client
A python SDK for ArvanCloud API
VOD
from vod.vod import VOD
vod = VOD('MY API KEY')
channels = vod.get_channels()
channel = next(filter(lambda t: t.description == 'my channels', channels))
video = vod.get_videos(channel, "video name, a key word, etc")
To add video from url:
vod.add_video(channel, "video title", video_url = "URL TO VIDEO")
To add video from file:
uploaded_file_id = vod.request_upload(channel, "PATH TO FILE")
vod.add_video(channel, "video title", file_id=uploaded_file_id)
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
arvan_client-0.0.3.tar.gz
(1.6 kB
view hashes)
Built Distribution
Close
Hashes for arvan_client-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aff434143aeb2b855f45ab03238fd232ad4c71d43891eb956ca28b528ef1ccee |
|
MD5 | b2617c459b50b60a31fa5f319d89a752 |
|
BLAKE2b-256 | 94e3986750f3d0fae1848f0da2640ede5cfa977b36fd021b01f685b079ec11eb |