Skip to main content

A Python wrapper library for the Wistia API

Project description

Wistia API Helper

https://img.shields.io/pypi/v/wystia.svg https://img.shields.io/travis/rnag/wystia.svg Documentation Status Updates

A Python wrapper library for the Wistia API

Usage

Some example usage below; more complete docs upcoming.

from wystia import WistiaDataApi, WistiaUploadApi, WistiaEmbedApi
from wystia.models import VideoData

# Assuming you haven't set this via the environment variable
for cls in WistiaDataApi, WistiaUploadApi:
    cls.configure('MY-API-TOKEN')
# List videos in a project (allows up to 500 results per request)
videos = WistiaDataApi.list_project('my-project-id')
# List details on a Wistia video
video_dict = WistiaDataApi.get_video('my-video-id')
vd = VideoData(**video_dict)
print(vd)
# Upload a file to a (default) project on Wistia
WistiaUploadApi.upload_file('path/to/path')
# Uploads with a public link to a video, such as
# an S3 pre-signed url.
WistiaUploadApi.upload_link('my-s3-link')

Installing Wystia and Supported Versions

The Wystia (Wistia helper) library is available on PyPI:

$ python -m pip install wystia

The wystia library officially supports Python 3.7 or higher.

About

I recommend reading the documentation in the source code for important HOW-TO’s and info on what each helper function is doing.

I’ll need to write some kind of documentation eventually, but that’s still pending for now.

At a minimum I recommend setting this environment variable:

  • WISTIA_API_TOKEN - API Token to use for requests to the Wistia API

Features

  • TODO

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.1.0 (2021-06-12)

  • First release on PyPI.

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

wystia-0.1.0.tar.gz (10.5 MB view hashes)

Uploaded Source

Built Distribution

wystia-0.1.0-py2.py3-none-any.whl (22.0 kB view hashes)

Uploaded Python 2 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