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.4.tar.gz
(1.5 kB
view details)
Built Distribution
File details
Details for the file arvan_client-0.0.4.tar.gz
.
File metadata
- Download URL: arvan_client-0.0.4.tar.gz
- Upload date:
- Size: 1.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07d345f59c9b35f49b2d5b563711124563298890d8ff458ec23b32f22d5af348 |
|
MD5 | 066a4e8a991a9dee638ce8bebf61a62f |
|
BLAKE2b-256 | 428fd35113e262aaf54d798f84034df747337ce620d549b2e34cd553e3fbeae1 |
File details
Details for the file arvan_client-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: arvan_client-0.0.4-py3-none-any.whl
- Upload date:
- Size: 2.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 091adce6d8784da1f434625d946d15dd36cb098b17a2e4c4387a2cc4d879d5a4 |
|
MD5 | 3c0806e29ae5bb307603594572063283 |
|
BLAKE2b-256 | a436eaf3b10aaf0d09fb555f81bd3c9d5b486c1a0c3be85cc70bc05946b5e15d |