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
File details
Details for the file wystia-0.1.0.tar.gz
.
File metadata
- Download URL: wystia-0.1.0.tar.gz
- Upload date:
- Size: 10.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.14.0 pkginfo/1.7.0 requests/2.25.1 setuptools/57.0.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1c26752d7de2d4fb74b6ca4569a630719b622108c14cfb737ac5f73fc1b038c |
|
MD5 | 835fed287930f2d1e013d4f388a05dd7 |
|
BLAKE2b-256 | 21c00a76ecc3a83a0e6b08096e70e00ba470e4e51d07580775aa0fa436c40bbc |
File details
Details for the file wystia-0.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: wystia-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 22.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.14.0 pkginfo/1.7.0 requests/2.25.1 setuptools/57.0.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68b2fc980a8295f4758b2e57a74cd2987d0337c86b95818b4fa7269ce7ff3c1c |
|
MD5 | dd435b7b0e5af319ca3ba264cfb979d5 |
|
BLAKE2b-256 | 6500e4adaaa17e7b5680b1f79cf4a9dbe84012c5a10dfd0a6282a8fa8fb07485 |