Skip to main content

Asychronous client to connect to api.innodatalabs.com

Project description

ilabs.client

Build Status PyPI version

Python client to access ilabs-api.innodata.com endpoints.

Building

virtualenv .venv -p python3
. .venv/bin/activate
pip install -r requirements.txt
pip install pytest

PYTHONPATH=. pytest ilabs/aclient/test

Usage

Quick start examples: https://github.com/innodatalabs/ilabs.aclient/tree/master/examples

User guide and API reference: https://innodatalabs.github.io/ilabs.aclient

Command-Line Bulk Prediction Tool

This package also provides a CLI tool to run file-to-file prediction in bulk:

ilabs_bulk_predict -h

usage: ilabs_bulk_predict [-h] --domain DOMAIN [--user_key USER_KEY]

                          [--num_workers NUM_WORKERS]
                          input_dir output_dir

Sends all files from the input directory to prediction service and places
result in the output directory

positional arguments:
  input_dir             Directory where input files are located
  output_dir            Directory where output will be saved

optional arguments:
  -h, --help            show this help message and exit
  --domain DOMAIN, -d DOMAIN
                        Prediction domain
  --user_key USER_KEY, -u USER_KEY
                        Secret user key
  --num_workers NUM_WORKERS, -n NUM_WORKERS
                        Number of concurrent workers

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ilabs.aclient-0.0.2-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file ilabs.aclient-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: ilabs.aclient-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.2

File hashes

Hashes for ilabs.aclient-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 61eb9bfb487432f9e4fcf66338dfabd28dced6841dea0f75e127a5f204e858bd
MD5 95e0ce1474a7ffa891bc607baea06ce0
BLAKE2b-256 315938659be5c95a76dede52fe50d586c5df6222dccd9546ae96e5685f43ae1c

See more details on using hashes here.

Supported by

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