/indicoio-py

Primary LanguagePythonMIT LicenseMIT

WARNING: This repository has been archived and replaced by the new Indico python client. Please use that repository instead.

Indico IPA platform API

A python client library for the Indico IPA Platform.

Installation


From PyPI:

pip3 install indicoio

From source:

git clone https://github.com/IndicoDataSolutions/indicoio-py.git
python3 setup.py install

Running in a Docker container:

docker build -t indicoio .
docker run -it indicoio bash

Getting Started

First, download an API token from your user dashboard, and save the downloaded file as indico_api_token.txt in either your home directory or working directory.

API Examples

import indicoio
from indicoio import ModelGroup, IndicoApi

# Model Predictions
mg = ModelGroup(id=<model group id>)
mg.load()
mg.predict(["some text"])

# PDF Extraction
api_client = IndicoApi()
api_client.pdf_extraction(["url or file"], **options)