Skip to main content

Infragrid Python SDK

Build ordered browser workflows with the same small API as the JavaScript SDK:

from infragrid import Infragrid

client = Infragrid()  # reads INFRAGRID_API_KEY
result = (
    client.workflow("account-review")
    .navigate("https://example.com")
    .type("#account-search", "%account_id%", submit=True)
    .extract("extract the account risk details", name="risk")
    .run(variables={"account_id": "acct_123"})
)

Install locally with pip install -e packages/python-sdk.

This sends native workflow JSON; it does not generate Brick or compile the steps into a prompt. Named extractions are available in run["result"]["outputs"].

Configuration and failures

The client reads INFRAGRID_API_KEY and optional INFRAGRID_BASE_URL. Explicit constructor arguments take precedence over environment variables. GET requests retry transient connection, timeout, rate-limit, and server failures up to max_retries; create requests retry only when an idempotency_key makes replay safe, including a bounded server response while the original idempotency claim is still completing.

HTTP failures raise status-specific InfragridError subclasses and preserve the server request ID when one is available. Invalid successful JSON, malformed run envelopes, and unexpected transport failures are surfaced as APIConnectionError instances. Responses are capped at 1 MiB; oversized successful payloads fail closed and oversized error bodies are discarded before status-specific classification.

Published Blueprints

blueprint = client.blueprints.list()["data"][0]
run = client.blueprints.runs.create(
    blueprint["id"],
    {"account_id": "acct_123"},
    revision_id=blueprint["latestRevision"]["id"],
    idempotency_key="account-review-acct-123",
)
events = client.blueprints.runs.events(run["id"])
finished = client.blueprints.runs.wait(run["id"])

Omit revision_id to pin the latest published revision at run creation. The SDK does not expose draft graph authoring. blueprints.run() remains a compatibility alias for blueprints.runs.create().

Download files

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

Source Distribution

infragrid-0.1.0.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

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

infragrid-0.1.0-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file infragrid-0.1.0.tar.gz.

File metadata

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

File hashes

Hashes for infragrid-0.1.0.tar.gz
Algorithm Hash digest
SHA256 dd1a9d08c0bc27eb613a27f419a1789c7145eb4b0bad78637f02f430e159da67
MD5 1d2b3727d8b8b9efc23decc5a1e38a54
BLAKE2b-256 c6df173f1a61bceee13f02f53939bce10b2c8db59534fd31d6e3217303917565

See more details on using hashes here.

Provenance

The following attestation bundles were made for infragrid-0.1.0.tar.gz:

Publisher: publish-sdks.yml on Infragrd-Browser/agentic-browser

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

File details

Details for the file infragrid-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: infragrid-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for infragrid-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 106f95de2fd4e612f4be6fe697cfba5b5f7ab8d1c932069fbfd34e4acac576ee
MD5 58d7a6cdf92cb3ca73c1ac7379348eaf
BLAKE2b-256 134d189a5830db61d6bb7312bfc155901f757bc51040237007f62a801be9bc89

See more details on using hashes here.

Provenance

The following attestation bundles were made for infragrid-0.1.0-py3-none-any.whl:

Publisher: publish-sdks.yml on Infragrd-Browser/agentic-browser

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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page