Skip to main content

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.6.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

arvan_client-0.0.6-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file arvan_client-0.0.6.tar.gz.

File metadata

  • Download URL: arvan_client-0.0.6.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

Hashes for arvan_client-0.0.6.tar.gz
Algorithm Hash digest
SHA256 cd5fe45d2067c4b264de1d134ed1c8d0ccc58a81e07c48a79d6162b070910958
MD5 ca2de3a44f073a555d078f5cd44abcac
BLAKE2b-256 75321736bed0776299cc5bfaf7222b718079b73e3594b87d68a5efe3fcb42649

See more details on using hashes here.

File details

Details for the file arvan_client-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: arvan_client-0.0.6-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

Hashes for arvan_client-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 b48e7ac23dd318cd29fcaa16dc880f18b7400259a66064568fe95424019c64e0
MD5 59e32332776696df5dd33f27614ab5de
BLAKE2b-256 efb889514cbc74812b1974fd0badf9843641d758f73cbf7b483ddc25f50b129a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page