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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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