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 details)
Built Distribution
File details
Details for the file arvan_client-0.0.3.tar.gz
.
File metadata
- Download URL: arvan_client-0.0.3.tar.gz
- Upload date:
- Size: 1.6 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 | 41d196f0ae9832404abfcc2f8824f38c30c7718ce5f5ef03b9c2a1bd0dc285b0 |
|
MD5 | 4d29fe9667f535f90f87d9963f170ad5 |
|
BLAKE2b-256 | 923d200b607cb863e3026f68a27d88baa59db8ee173aaa659221cb23e40f35be |
File details
Details for the file arvan_client-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: arvan_client-0.0.3-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 | aff434143aeb2b855f45ab03238fd232ad4c71d43891eb956ca28b528ef1ccee |
|
MD5 | b2617c459b50b60a31fa5f319d89a752 |
|
BLAKE2b-256 | 94e3986750f3d0fae1848f0da2640ede5cfa977b36fd021b01f685b079ec11eb |