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

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

Built distribution (wheel)

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

Total release size: 49.0 kB

Release files / atcn-1.4.1.tar.gz

Download URL atcn-1.4.1.tar.gz
Size 27.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2bf297ec8c2f9623c5310faf912ad7e31cc2b6896b2b817c72c2f7bfdb77a409
BLAKE2b-256 checksum
How to use checksums
22bb5319b00040b459ec956ab9e85a47dba7c2e216276f8266179af00b88e132
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.1-py3-none-any.whl

Download URL atcn-1.4.1-py3-none-any.whl
Size 22.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a452cf862f0c4320891327efc459e3509daf396cdd32d15f5004d5dcebe6a5f1
BLAKE2b-256 checksum
How to use checksums
745211296939cf2027d8fa542313f405b57e532c3879491b0fa96a438fdbf175
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

This release

1.4.1 This release

2 release files

1.4.0

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