Catalog PyPI
PACKAGE EXPLORERView in registry

agimus

PyPI

Python SDK for the Agimus Platform

Versions collected1
Direct dependencies4From release 2.0.0
Last observed21 Oct, 09:08 UTC

README

Version 2.0.0 documentation

Agimus Python SDK

Query and edit your ontology from Python. Discover its schema, filter and traverse objects, compute aggregates, execute read-only SQL, and retrieve typed Arrow tables. Synchronous and asynchronous clients share the same query builder.

Install

pip install agimus

Requires Python 3.10+. Install pandas or polars separately for their DataFrame conversions.

Connect and read

Create a key in your tenant's API Access page. Keep it outside source code:

export AGIMUS_API_KEY="agm_..."
# Optional; the default is https://api.agimus.ai
export AGIMUS_BASE_URL="https://api.agimus.ai"
from agimus import AgimusClient

with AgimusClient() as client:
    print([entity["apiName"] for entity in client.list_entities()])

    # Replace these API names with those in your ontology.
    customers = client.objects("Customer")
    page = customers.filter(region="EU").fields("customerId", "name").page()
    for customer in page:
        print(customer)

For writes, use a read/write key and retain the version from your read:

with AgimusClient() as client:
    customers = client.objects("Customer")
    customer = customers.get("C1")
    updated = customers.update("C1", {"name": "Acme Ltd"}, version=customer["_version"])

The SDK reads and writes ontology objects. Permissions apply to discovery, queries and writes. Large result delivery is followed automatically; resumable handles let you continue an execution after the client's deadline.

Documentation

Sign in to the Agimus app and open Resources → SDK & API Docs for the SDK guide, SDK reference and HTTP API reference. These cover discovery, reads, relationships, aggregates, SQL, Arrow, writes, async usage, parameters, result types, errors and limits.

License

MIT

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
2.0.020 Oct 20264

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 09:08 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:b3fb65ee52dfb35065729031416d40c1c20d4b82f02a2b22715101b5b0e91fa7