A Python client for the Wistia data API
Project description
Wistia Python client
A Python client for the Wistia Data API
Installation
pip install wistiapy
You'll need to create an access token as documented.
Usage
from wistia import WistiaClient
wistia = WistiaClient(api_password='YOUR_API_PASSWORD')
projects = wistia.list_projects()
Alternatively, you can set your password in an environment variable, or, if using Django, in a
setting called WISTIA_API_PASSWORD
. Then use the factory function:
from wistia import get_wistia_client
wistia = get_wistia_client()
Dummy Client
Included is a mock version of the client for testing purposes. It will log any calls made to it,
and attempts to respond in the same manner as the live service. Currently a work-in-progress.
If using Django, including the setting WISTIA_CLIENT_CLASS = 'WistiaDummyClient'
will make
get_wistia_client
provide a dummy client.
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
wistiapy-0.0.10.tar.gz
(10.3 kB
view hashes)
Built Distribution
wistiapy-0.0.10-py3-none-any.whl
(12.6 kB
view hashes)
Close
Hashes for wistiapy-0.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06f71ee09138667fdeddf143befb2170519636ed0f082687a209ee97b07dbdd8 |
|
MD5 | dd9b1a6308d9ab7dbf8470adec2d50f7 |
|
BLAKE2b-256 | 4206f20c5b4fb412ef3599c531412071c044deb8fc43aaffb22dada5ff1db4c8 |