glyph-protocol — Python SDK
Verify Glyph Protocol cards, receipts and key registries from Python, and call Glyph servers from agent code outside the Node.js ecosystem.
Install
pip install glyph-protocol
Verify a card
from glyph_protocol import verify_glyph
card = httpx.get("https://example.com/glyphs/refund-payment").json()
assert verify_glyph(card)
Call a glyph
from glyph_protocol import Client, verify_receipt
client = Client("https://example.com")
envelope = client.call("greet", {"name": "World"})
assert verify_receipt(envelope["receipt"])
Compatibility and feature parity
This SDK targets Glyph Protocol 1.0 and is tested against the canonical
test vectors under spec/canonical/ in the main repo — so a value canonicalized
or signed in Python verifies bit-identical to its TypeScript and Go counterparts.
Receipts use receiptVersion 0.3: servers generate the authoritative callId,
and callers may pass an optional client correlation id.
Python currently covers protocol verification and client calls. TypeScript-only
features include Provider Trust Resolver enforcement, attestation verifier
plugins/policy gates, GlyphServer, and experimental FROST signing.
See spec/protocol.md and spec/rfcs/RFC-0001-key-registry.md for the
normative protocol.
Metadata
Release files for glyph-protocol 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| glyph_protocol-1.2.0.tar.gz | 10.9 kB | Without provenance | Details for glyph_protocol-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| glyph_protocol-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for glyph_protocol-1.2.0-py3-none-any.whl |
Total release size: 20.1 kB
Release files / glyph_protocol-1.2.0.tar.gz
| Download URL | glyph_protocol-1.2.0.tar.gz |
|---|---|
| Size | 10.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
60a57b876b92e9844659de7b279bb5ca48790b66f1e7c45282a0d8592e50c023
|
|
BLAKE2b-256 checksum How to use checksums |
a323d3ce6b890c80c476433159ae497d8d2a07ebf50d5a099c2fd36420779a15
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Release files / glyph_protocol-1.2.0-py3-none-any.whl
| Download URL | glyph_protocol-1.2.0-py3-none-any.whl |
|---|---|
| Size | 9.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
975d24ffd063d0a95a5eb5435dac8f93da66b6d03d4b7fadd5a93d20e33260ec
|
|
BLAKE2b-256 checksum How to use checksums |
08b214751d65532c5868002e69c64359ba516f98eb6d32b42e115a98878a93fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Security for glyph-protocol 1.2.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.