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

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.4.0
File Size Uploaded
atcn-1.4.0.tar.gz 27.0 kB Details

Built distribution (wheel)

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

Total release size: 49.0 kB

Release files / atcn-1.4.0.tar.gz

Download URL atcn-1.4.0.tar.gz
Size 27.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d4aa4720cb589bbff66d80c3751f4170bec449b14a2f60ead17b23c0b2b19a6b
BLAKE2b-256 checksum
How to use checksums
b0f96b01710ef206afb859fd0e5df14d7927518a70a427de8ee7f0caf421b725
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 4, 2026.

Transparency log

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

Download URL atcn-1.4.0-py3-none-any.whl
Size 22.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
334a813cdd217dbcc8d9311eb4a3da9d5e98bb0267774c1f0cf4fd64fc95c23d
BLAKE2b-256 checksum
How to use checksums
d2ed02cb52e30d63633f75f071c03ddc997cd243733c19953c4544874af92343
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 4, 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

This release

1.4.0 This release

2 release files

1.3.2

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