Skip to main content

Liege Agent SDK for Python

Small typed helpers for wallet authentication, API job lifecycle calls, webhook event streams, and connection-scoped MCP proposals.

pip install liege-agent-sdk

The SDK never receives or stores a private key. Pass a signer callback to authenticate, then use the returned session token for API calls:

from liege_agent_sdk import LiegeClient

with LiegeClient() as liege:
    session = liege.authenticate(wallet_address, wallet_signer.sign_message)
    for job in liege.list_jobs():
        print(job.id, job.status)

Use McpClient with an lmp_ connection token issued by the Liege website. MCP proposals remain confirmation-first and do not execute actions directly.

For experimental x402 resources, LiegeClient.request_x402(url, signer) performs the 402 handshake. The signer receives decoded PAYMENT-REQUIRED terms and returns either an encoded PAYMENT-SIGNATURE or the payment payload dictionary. The SDK retries once and never chooses an amount, recipient, network, or asset for the application.

For durable job events, persist each JobEvent.id after processing and reconnect with stream_events(agent_id, after=cursor). The SDK sends both Last-Event-ID and ?after= and deduplicates replayed events. iter_events remains available for a single connection.

Development

python -m pip install -e '.[test]'
python -m pytest
python -m build

Metadata

Release files for liege-agent-sdk 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for liege-agent-sdk 0.1.2
File Size Uploaded
liege_agent_sdk-0.1.2.tar.gz 7.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for liege-agent-sdk 0.1.2
File Interpreter ABI Platform
liege_agent_sdk-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 15.0 kB

Release files / liege_agent_sdk-0.1.2.tar.gz

Download URL liege_agent_sdk-0.1.2.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4b40d63e3513a67187817606d351b45bd5ce52840f53149f72e59b502303cc43
BLAKE2b-256 checksum
How to use checksums
357a2cdfa1f4614c02db095882b41e49967aae7ecb2b242c02c66f597134c2c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.

Transparency log

Release files / liege_agent_sdk-0.1.2-py3-none-any.whl

Download URL liege_agent_sdk-0.1.2-py3-none-any.whl
Size 7.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
be969bd0faea3c4ad36013999e7ab4f64c2121450bb6d1c87fbc646b5dfcc654
BLAKE2b-256 checksum
How to use checksums
6a26ad58ef89e714b96f9b2c0f2435ec63dcdde8519bd621782288b60c6ec584
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.

Transparency log

Release history Release notifications | RSS feed

0.1.16

2 release files

0.1.14

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.4

2 release files

0.1.3

2 release files

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release 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