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
Metadata
Release files for mtai 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mtai-0.1.0.tar.gz | 7.5 kB | Without provenance | Details for mtai-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mtai-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for mtai-0.1.0-py3-none-any.whl |
Total release size: 15.5 kB
Release files / mtai-0.1.0.tar.gz
| Download URL | mtai-0.1.0.tar.gz |
|---|---|
| Size | 7.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dbdc88f6b052e44d3bf089e9c68e37fdb4c9133b545b8678569a7607bec0c1ea
|
|
BLAKE2b-256 checksum How to use checksums |
9a4fd8d66d0f462baebc1efeb071adec73ca877011ca9efceb5ab1be626b3561
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.10.14
|
Release files / mtai-0.1.0-py3-none-any.whl
| Download URL | mtai-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e843e8b3bd78c8633c6e76f437ad2ee198d44608f378b42ffaec5893aa257bee
|
|
BLAKE2b-256 checksum How to use checksums |
3260facc92a4de403ddd4ce970d00b895eba12817c9f06cd1621097c6b31fb57
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.10.14
|
Security for mtai 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.