Python Reference
The Python implementation is alx-protocol, published on PyPI. The package implements the core protocol as a peer of the JavaScript and Rust packages: it creates, validates, and traces Blocks from the same rules as the JavaScript and Rust packages and is checked against the same conformance vectors, so identities agree across languages.
Implementation
| Resource | Location |
|---|---|
| Package | alx-protocol |
| Registry | PyPI |
| Install | pip install alx-protocol |
| Requirements | Python 3.11 or later |
Capabilities
| Capability | Status |
|---|---|
| Canonicalization | Supported |
| Block creation and validation | Supported |
| Content hash and Block hash derivation | Supported |
| Parent lineage validation | Supported |
| Canonical Graph verification | Supported |
| Trace generation | Supported |
| Verification context | Supported |
| Merkle extension helpers | Supported |
| Ed25519 and P-256 signing | Supported |
| EIP-712 signing | Not bundled |
When to Use Python
Choose this package for Python services, data pipelines, and AI workflows that create or verify Blocks. Identities it computes match those from the JavaScript and Rust packages for the same content and parent set.