Skip to main content

insightfactory-sdk

Async Python client for the Insight Factory REST API.

from insightfactory_sdk import ApiClient, Configuration
from insightfactory_sdk.api.tasks_api import TasksApi

config = Configuration(
    host="https://your-factory.insightfactory.ai", access_token=token
)

async with ApiClient(config) as client:
    tasks = await TasksApi(client).tasks_get()

Every operation is async and non-blocking, over a pooled httpx.AsyncClient. Each also has a _sync twin for scripts and notebooks — note this builds its own client, outside any async with block:

sync_client = ApiClient(config)
tasks = TasksApi(sync_client).tasks_get_sync()

_sync runs the coroutine on a dedicated background event loop, so it must not be called from inside async code — await the async method there instead.

Don't mix the two on one ApiClient. The connection pool is created on the first request and bound to whichever loop issued it, so a client used both ways binds its pool to one loop and fails on the other — usually as an Event loop is closed far from the call that caused it. Use a separate client for each style.

Download files

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

Source Distribution

insightfactory_sdk-8.0.6.1.tar.gz (432.1 kB view details)

Uploaded Source

Built Distribution

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

insightfactory_sdk-8.0.6.1-py3-none-any.whl (730.0 kB view details)

Uploaded Python 3

File details

Details for the file insightfactory_sdk-8.0.6.1.tar.gz.

File metadata

  • Download URL: insightfactory_sdk-8.0.6.1.tar.gz
  • Upload date:
  • Size: 432.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for insightfactory_sdk-8.0.6.1.tar.gz
Algorithm Hash digest
SHA256 7af96246399ee640dcc9603e4ad40148ee17cf76db8dd413ba42de1e324bc74b
MD5 6a78762249ab4631c52eac60ff7819d4
BLAKE2b-256 24397561d9086c5f154c7e2ef6d714d24782fb5cb90bdd14b6f134aed25e5145

See more details on using hashes here.

Provenance

The following attestation bundles were made for insightfactory_sdk-8.0.6.1.tar.gz:

Publisher: release.yml on insightfactory-ai/insightfactory-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file insightfactory_sdk-8.0.6.1-py3-none-any.whl.

File metadata

File hashes

Hashes for insightfactory_sdk-8.0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3498f550b712e5ece67af63452b064964616fe5aa4de7946fc9f6c0cfebd5df8
MD5 396aa3fb9f41a49d0bd2d7b596f4edc9
BLAKE2b-256 413fcc567f1eb66a187343a8092ef876cc4413a5ff7f60fda0da35187ea7a85b

See more details on using hashes here.

Provenance

The following attestation bundles were made for insightfactory_sdk-8.0.6.1-py3-none-any.whl:

Publisher: release.yml on insightfactory-ai/insightfactory-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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