Metadata-Version: 2.4
Name: wistiapy
Version: 0.0.15
Summary: A Python client for the Wistia data API
Author-email: Matt Fisher <mrpfisher@gmail.com>, Danny Shaw <danny@edrolo.com>
License: MIT
Project-URL: Homepage, https://github.com/Edrolo/wistiapy
Project-URL: Repository, https://github.com/Edrolo/wistiapy
Keywords: wistia,api,client
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests<3.0.0,>=2.22.0
Requires-Dist: schematics<3.0.0,>=2.1.1
Requires-Dist: pydantic<2.0.0,>=1.8.2
Provides-Extra: dev
Requires-Dist: black; extra == "dev"
Requires-Dist: flake8; extra == "dev"
Requires-Dist: pytest; extra == "dev"
Requires-Dist: responses; extra == "dev"
Dynamic: license-file

# Wistia Python client

A Python client for the [Wistia Data API](https://wistia.com/support/developers/data-api)

![](https://github.com/Edrolo/wistiapy/workflows/Python%20Tests/badge.svg)
[![PyPI version](https://badge.fury.io/py/wistiapy.svg)](https://badge.fury.io/py/wistiapy)

## Installation
```bash
pip install wistiapy
```

You'll need to create an access token [as documented](https://wistia.com/support/developers/data-api#creating-and-managing-access-tokens).

## Usage

```python
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:
```python
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.
