A python library to consume meditranscribe ai API
Project description
Table of Contents generated with DocToc
mt-ai-python
Python package for MediaTranscribe View on pypi.python.org
API SECRET KEY
Get your secret key from https://ai.mediatranscribe.com/
Installation
pip install mtai
Example
Instantiate mtai
from mtai.mt import MT
secret_key = "secret_key_here"
mt = MT(secret_key=secret_key)
# use tag class
print(mt.tags.list()) # list tags
print(mt.tags.create_from_title(title="Python Programming Language")) # create tags
print(mt.tags.create_from_title_summary("Python", "Python is a programming language")) # create tags
print(mt.tags.get_tag_by_id("664e033837511b57fa93dd2e")) # get a tag
print(mt.tags.delete_tag_by_id("664e033837511b57fa93dd2e")) # delete a tag
Static Use
To start using the MTAI Python API, you need to start by setting your secret key.
You can set your secret key in your environment by running:
export SECRET_KEY = 'your_secret_secret_key'
After exporting the keys, you can use the api like this
# work with tags
from mtai.tags import Tag
print(Tag.list())
print(Tag.create_from_title(title="Python Programming Language"))
print(Tag.create_from_title_summary("Python", "Python is a programming language"))
print(Tag.get_tab_by_id("664e033837511b57fa93dd2e"))
print(Tag.delete_tag_by_id("664e033837511b57fa93dd2e"))
Resources
Transcription
Tag
Prompt
Bio
Description
Please reference the docs folder for usage.
Contribution
If you want to join, kindly see this contribution
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
mtai-0.0.12.tar.gz
(6.2 kB
view hashes)
Built Distribution
mtai-0.0.12-py3-none-any.whl
(7.2 kB
view hashes)