Glyph Protocol — Python SDK (verify + client)
Project description
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
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.
See spec/protocol.md and spec/rfcs/RFC-0001-key-registry.md for the
normative protocol.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file glyph_protocol-1.0.0.tar.gz.
File metadata
- Download URL: glyph_protocol-1.0.0.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f701199e24da391f652ae686c9bffde852fbc8c773fcc9067f9815447cfece5e
|
|
| MD5 |
4ead9accd86ffdf801e159d652fc5084
|
|
| BLAKE2b-256 |
2bde6af74f59be4f66e59445c6394dbdd8ac4f2c20db2573374d2b7437def734
|
File details
Details for the file glyph_protocol-1.0.0-py3-none-any.whl.
File metadata
- Download URL: glyph_protocol-1.0.0-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3b5dd6b45ac269becdc9cb888908cf7e8ae864d4ff4a0569eb759c4cd0ef6a3
|
|
| MD5 |
8e470d14f278f20161a9201041c93a3c
|
|
| BLAKE2b-256 |
3b7cfb8cffb404817f087ebc3117b23d493804471082129b813bc1f63a095ac0
|