makes it easier to implement a ContentAI extractor
Project description
contentai-extractor-runtime-python
This is a python package used for implementing a custom extractor that runs on the ContentAI platform.
https://pypi.org/project/contentaiextractor/
Usage
pip install contentaiextractor
import contentaiextractor as contentai
# download content locally
content_path = contentai.download_content()
# access metadata that was supplied when running a job
# contentai run s3://bucket/video.mp4 -d '{ "input": "value" }'
inputData = contentai.metadata()["input"]
# get output from another extractor
ttml = contentai.get("extractor", "data.ttml")
json = contentai.get_json("extractor", "data.json")
# extract some data
outputData = []
outputData.append({"frameNumber": 1})
# output data from this extractor
contentai.set("output", outputData)
API Documentation
Develop
Choose a make command to run
build build package
deploy upload package to pypi
docs generates api docs in markdown
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
Close
Hashes for contentaiextractor-0.1.0rc9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45f6278bac7282406eb6151cfe98805f0f33464a4e1c36c256f5ebdd957b5a61 |
|
MD5 | b5dc76d1ac2eaa634ff498ed121312f2 |
|
BLAKE2b-256 | 5e12f19febe8e065bbdf6ea386b17bb9a0f92dac2888a906db2fcbc350b4903a |