A Python wrapper library for the 3Play API v3
- Free software: MIT license
- Documentation: https://three-play.readthedocs.io.
from three_play.v3 import *
from three_play.v3.models import *
# Assuming you haven't set this via the environment variable
ThreePlayApi.configure('MY-API-KEY')
r = ThreePlayApi.list_media_files(name_partial='Testing')
file_data = r.get('data', [])
files = [MediaFile(**file) for file in file_data]
print(len(files), files)
transcripts = ThreePlayHelper.get_transcripts('my-video-id')
print(len(transcripts), transcripts)
The 3Play helper library is available on PyPI:
$ python -m pip install three-play
The three-play
helper library officially supports Python 3.7 or higher.
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 these 2 environment variables:
3PLAY_API_KEY
- API Key to use for requests to 3Play APIINTEGRATION_ID
- Service Integration ID on 3Play - for example, an integration /w YouTube
- TODO
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.