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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd1a9d08c0bc27eb613a27f419a1789c7145eb4b0bad78637f02f430e159da67
|
|
| MD5 |
1d2b3727d8b8b9efc23decc5a1e38a54
|
|
| BLAKE2b-256 |
c6df173f1a61bceee13f02f53939bce10b2c8db59534fd31d6e3217303917565
|
Provenance
The following attestation bundles were made for infragrid-0.1.0.tar.gz:
Publisher:
publish-sdks.yml on Infragrd-Browser/agentic-browser
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
infragrid-0.1.0.tar.gz -
Subject digest:
dd1a9d08c0bc27eb613a27f419a1789c7145eb4b0bad78637f02f430e159da67 - Sigstore transparency entry: 2495513777
- Sigstore integration time:
-
Permalink:
Infragrd-Browser/agentic-browser@cd313c4c3914433be395af61ea53a13d03775d46 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Infragrd-Browser
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-sdks.yml@cd313c4c3914433be395af61ea53a13d03775d46 -
Trigger Event:
workflow_dispatch
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
106f95de2fd4e612f4be6fe697cfba5b5f7ab8d1c932069fbfd34e4acac576ee
|
|
| MD5 |
58d7a6cdf92cb3ca73c1ac7379348eaf
|
|
| BLAKE2b-256 |
134d189a5830db61d6bb7312bfc155901f757bc51040237007f62a801be9bc89
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
infragrid-0.1.0-py3-none-any.whl -
Subject digest:
106f95de2fd4e612f4be6fe697cfba5b5f7ab8d1c932069fbfd34e4acac576ee - Sigstore transparency entry: 2495513910
- Sigstore integration time:
-
Permalink:
Infragrd-Browser/agentic-browser@cd313c4c3914433be395af61ea53a13d03775d46 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Infragrd-Browser
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-sdks.yml@cd313c4c3914433be395af61ea53a13d03775d46 -
Trigger Event:
workflow_dispatch
-
Statement type: