A Python wrapper library for the Wistia API
Project description
Wistia API Helper
A Python wrapper library for the Wistia API
Free software: MIT license
Documentation: https://wystia.readthedocs.io.
Wistia Developer Docs: https://wistia.com/support/developers.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for wystia-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68b2fc980a8295f4758b2e57a74cd2987d0337c86b95818b4fa7269ce7ff3c1c |
|
MD5 | dd435b7b0e5af319ca3ba264cfb979d5 |
|
BLAKE2b-256 | 6500e4adaaa17e7b5680b1f79cf4a9dbe84012c5a10dfd0a6282a8fa8fb07485 |