three_play package¶
Subpackages¶
Submodules¶
three_play.constants module¶
Project-specific constants
three_play.errors module¶
Project-specific exception classes
- exception three_play.errors.ADIsNotComplete(video_id: str)[source]¶
Bases:
three_play.errors.ThreePlayErrorRaised when an Audio Description order is not complete and still in progress.
- exception three_play.errors.InvalidLanguageId(language_id, transcript_id)[source]¶
Bases:
three_play.errors.ThreePlayErrorRaised when a 3Play transcript has an invalid / unexpected language id.
- exception three_play.errors.InvalidSourceLanguage(source_language)[source]¶
Bases:
three_play.errors.ThreePlayErrorRaised when a request contains an invalid source language for placing transcript orders.
- exception three_play.errors.InvalidTurnaround(turnaround_name)[source]¶
Bases:
three_play.errors.ThreePlayErrorRaised when a request contains an invalid 3Play turnaround level
- exception three_play.errors.NoSuchMediaFile(video_id)[source]¶
Bases:
three_play.errors.ThreePlayErrorRaised when a media file does not exist on 3Play for a given video id
- exception three_play.errors.NoSuchTranscript(video_id, has_lang_input=False)[source]¶
Bases:
three_play.errors.ThreePlayErrorRaised when a completed transcript order does not exist on 3Play for a given video id
three_play.log module¶
Module contents¶
A Python library for the 3Play API v3
Usage:
>>> from three_play.v3 import *
>>> from three_play.v3.models import *
>>>
>>> file_data = ThreePlayApi.list_media_files(name_partial='Testing').get('data', [])
>>> files = [MediaFile(**file) for file in file_data]
>>> print(len(files), files)
>>>
>>> transcripts = ThreePlayHelper.get_transcripts('my-video-id')
>>> print(transcripts)