A Python wrapper library for the 3Play API v3
Project description
3Play API
A Python library for the 3Play API v3
Free software: MIT license
Documentation: https://three-play.readthedocs.io.
Usage
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)
Installing
The 3Play helper library is available on PyPI:
$ python -m pip install three-play
Supported Versions
The three-play helper 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 these 2 environment variables:
3PLAY_API_KEY - API Key to use for requests to 3Play API
INTEGRATION_ID - Service Integration ID on 3Play - for example, an integration /w YouTube
Features
TODO
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.1.0 (2021-06-11)
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 three-play-0.1.0.tar.gz
.
File metadata
- Download URL: three-play-0.1.0.tar.gz
- Upload date:
- Size: 23.0 kB
- 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.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bd743568e3bdf0b036b0bc3c53683ecbc921a96adcd127a5e178803b6e67be7 |
|
MD5 | 59219b43785d8a21c9c45c00b5ca4fad |
|
BLAKE2b-256 | 8dafb66bfdb5010c0e1d3f59726cdeef356740c2f85131d375c337db3e5134f7 |
File details
Details for the file three_play-0.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: three_play-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 24.6 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.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0e9b073ad26d4d0adfc435e908cd8d010e8c3ddc55000c4fd94ce1c08c6b928 |
|
MD5 | 55693f1b9b342f7478ae34440a1d0d0f |
|
BLAKE2b-256 | a0b0736ae0ce5bb1223e8456e9f79dd4798a75b6e4cc89dac19ec6d813b205be |