Skip to main content

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

License PyPI version

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


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.1.0.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

mtai-0.1.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file mtai-0.1.0.tar.gz.

File metadata

  • Download URL: mtai-0.1.0.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.14

File hashes

Hashes for mtai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 dbdc88f6b052e44d3bf089e9c68e37fdb4c9133b545b8678569a7607bec0c1ea
MD5 3c392111ec4e3229cfcb528244fe07c4
BLAKE2b-256 9a4fd8d66d0f462baebc1efeb071adec73ca877011ca9efceb5ab1be626b3561

See more details on using hashes here.

File details

Details for the file mtai-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: mtai-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.14

File hashes

Hashes for mtai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e843e8b3bd78c8633c6e76f437ad2ee198d44608f378b42ffaec5893aa257bee
MD5 5ee88a744eb491418f2163d597c12ee7
BLAKE2b-256 3260facc92a4de403ddd4ce970d00b895eba12817c9f06cd1621097c6b31fb57

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page