Skip to main content

Classes, functions, and abstractions for Indico IPA

Project description

Indico Toolkit

This repository contains software that is not officially supported by Indico. It may be outdated or contain bugs. The operations it performs are potentially destructive. Use at your own risk.

Classes, functions, and abstractions for building workflows using the Indico IPA (Intelligent Process Automation) platform.

  • Polling Classes that implement best-practices polling behavior for Auto Review and Downstream processes. Easily plug in business logic without the boilerplate.
  • Result File and Etl Output Data Classes that parse standard IPA JSON output into idiomatic, type-safe Python dataclasses.
  • Metrics Classes to compare model performance, evaluate ground truth, and plot statistics.
  • Snapshot Classes to concatenate, merge, filter, and manipulate snapshot CSVs.

...and more in the Examples folder.

Installation

Indico Toolkit does not use semantic versioning.

Indico Toolkit versions match the minimum IPA version required to use its functionality. E.g. indico-toolkit==6.14.0 makes use of functionality introduced in IPA 6.14, and some functionality requires IPA 6.14 or later to use.

pip install indico-toolkit

Some functionality requires optional dependencies that can be installed with extras.

pip install 'indico-toolkit[all]'
pip install 'indico-toolkit[downloads]'
pip install 'indico-toolkit[examples]'
pip install 'indico-toolkit[metrics]'
pip install 'indico-toolkit[predictions]'
pip install 'indico-toolkit[snapshots]'

Contributing

Indico Toolkit uses Poetry 2.X for package and dependency management.

Setup

Clone the source repository with Git.

git clone git@github.com:IndicoDataSolutions/indico-toolkit-python.git

Install dependencies with Poetry.

poetry install

Formatting, linting, type checking, and tests are defined as Poe tasks in pyproject.toml.

poetry run poe {format,check,test,all}

Code changes or additions should pass poetry run poe all before opening a PR.

Tests

Indico Toolkit has three test suites: required unit tests, extra unit tests, and integration tests.

By default, only required unit tests are executed. Extra unit tests and integration tests are skipped.

poetry run poe {test,all}

Extra unit tests are skipped when their dependencies are not installed. To execute extra unit tests, install one or more extras and run the tests.

poetry install --all-extras
poetry run poe {test,all}

Integration tests make API calls to an IPA environment and require a host and API token to execute. These tests create datasets, setup workflows, and train models. Expect them to take tens of minutes to run.

poetry run poe test-integration \
    --host try.indico.io \
    --token indico_api_token.txt

Make liberal use of pytest's --last-failed and --failed-first flags to speed up integration test execution when writing code.

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

indico_toolkit-6.14.0.tar.gz (58.9 kB view details)

Uploaded Source

Built Distribution

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

indico_toolkit-6.14.0-py3-none-any.whl (90.2 kB view details)

Uploaded Python 3

File details

Details for the file indico_toolkit-6.14.0.tar.gz.

File metadata

  • Download URL: indico_toolkit-6.14.0.tar.gz
  • Upload date:
  • Size: 58.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.2 Darwin/24.3.0

File hashes

Hashes for indico_toolkit-6.14.0.tar.gz
Algorithm Hash digest
SHA256 285779d9cc576dea43ffef31cb185954372e732927a95f1f5ef4ba7717107ec8
MD5 93c73fb5441009c383f8db0785981e9a
BLAKE2b-256 b9ade7eff5ff47166347ca14295cd7748c188d4fdfedeabebbc15b06fa4b5c40

See more details on using hashes here.

File details

Details for the file indico_toolkit-6.14.0-py3-none-any.whl.

File metadata

  • Download URL: indico_toolkit-6.14.0-py3-none-any.whl
  • Upload date:
  • Size: 90.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.2 Darwin/24.3.0

File hashes

Hashes for indico_toolkit-6.14.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1c89e54a8a9bc617786f8edb9c520ab506dd77e10c6ebe6bba063e68b5933ec9
MD5 5cb5a5692cd21c370d3460d7907ab78e
BLAKE2b-256 a281defaa0bbda1c8faf3a037a2ef44c3a6b4c48b7d7209b5f891c6de62c0e3b

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