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.5.tar.gz
(5.7 kB
view details)
Built Distribution
File details
Details for the file arvan_client-0.0.5.tar.gz
.
File metadata
- Download URL: arvan_client-0.0.5.tar.gz
- Upload date:
- Size: 5.7 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 | bb4eb469ae3f42af0546263c2c8844eb15252964b804097e6b14f28a68994bcf |
|
MD5 | 364c5137711392f5764720bbdee4a407 |
|
BLAKE2b-256 | 0b8296999115dd16bb80503bc915beadc1670919cf6be6c5e174898592ea7c1c |
File details
Details for the file arvan_client-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: arvan_client-0.0.5-py3-none-any.whl
- Upload date:
- Size: 8.0 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 | e763a3a892a4d6c8ec1e6ecf6cf173a628511401cb33fe4eedd68bba02168db2 |
|
MD5 | bf4ea6f33728a79350ab18368a58a944 |
|
BLAKE2b-256 | 7acf1aaf381cfe5d9ba231bb2ef4efe0cbb42e9f94dde14233dbe328108fa539 |