Skip to main content

atcn (Python SDK)

The ATCN Python SDK. It covers:

  • Signing. RFC 8785 canonical JSON, Ed25519 signing, and obligation event signing with EventSigner.
  • Webhooks. verify_webhook and sign_webhook.
  • API clients. AtcnClient is for the clearing network. SubledgerClient and CaptureQueue record tasks, delegations and charges. ReceiptLinkClient is for providers.
  • Provider response statements. build_response_statement, sign_statement and verify_statement_signature.

It passes the same signing test vectors as the TypeScript SDK.

pip install atcn
from atcn import canonicalize, generate_key_pair, sign_payload, verify_payload

canonicalize({"b": 1, "a": 2})  # '{"a":2,"b":1}'
private_key, public_key = generate_key_pair()
signed = sign_payload({"hello": "world"}, "key_1", 1, private_key)
assert verify_payload(signed, public_key)

The API clients need an ATCN API at base_url. The hosted API is not open for signup yet.

The Python SDK does not verify task closures or receipts. Use npx @atcn/verify-cli or the TypeScript SDK for that.

python -m atcn init records whether this machine shares anonymous usage metrics. Reporting is off by default and needs ATCN_USAGE_URL; see the usage data documentation.

Apache-2.0.

Metadata

Release files for atcn 1.3.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 atcn 1.3.2
File Size Uploaded
atcn-1.3.2.tar.gz 26.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for atcn 1.3.2
File Interpreter ABI Platform
atcn-1.3.2-py3-none-any.whl Python 3 none any Details

Total release size: 47.7 kB

Release files / atcn-1.3.2.tar.gz

Download URL atcn-1.3.2.tar.gz
Size 26.0 kB
Tags Source
SHA-256 checksum
How to use checksums
0bd52499c948bb6ee3924545181513473db613ee7722ddda242d240eccfa8503
BLAKE2b-256 checksum
How to use checksums
c93fa10476d551956e8452f3f262c28ee248cff6a6d95c42099babead19c1543
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 3, 2026.

Transparency log

Release files / atcn-1.3.2-py3-none-any.whl

Download URL atcn-1.3.2-py3-none-any.whl
Size 21.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1bb33a378e6b60e20baf911c0fce852a2941df64eaf95b5fe09926a2ab474593
BLAKE2b-256 checksum
How to use checksums
d23a215a7ceae16adc0eca6af7b59fc10195a2b2f6fe7538b4236b82ae66f025
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 3, 2026.

Transparency log

Release history Release notifications | RSS feed

1.5.1

2 release files

1.5.0

2 release files

1.4.1

2 release files

1.4.0

2 release files

This release

1.3.2 This release

2 release files

1.3.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