glyff-pydantic
Pydantic-based Serializer and ArgumentCanonicalizer implementations for
glyff.
Lets a glyff session record results of any type Pydantic's TypeAdapter can
handle, and key executions on arguments that are Pydantic models.
Install
pip install glyff-pydantic
This package depends on glyff>=0.14.0 and pydantic>=2.0.
Public API
| Name | Description |
|---|---|
PydanticSerializer |
Serializes values to JSON using TypeAdapter. Restores typed values on read. |
PydanticArgumentCanonicalizer |
Canonicalizes function arguments through Pydantic's own dump, for stable, type-aware identity. |
PydanticSerializer works with any type TypeAdapter handles. The
canonicalizer's reach is narrower by design: it dumps BaseModel instances and
represents the scalars pydantic knows (datetime, UUID, Decimal), while
every container is walked by glyff's shared canonicalization so mappings, sets
and fallback representations follow one set of rules.
Both satisfy the contracts in glyff.testing; what they inherit from the stdlib
JSON implementations is proved in glyff, and this package's own tests cover
what Pydantic changes.
Canonical arguments are part of an execution's identity, so they must stay stable across code changes — see execution identity for what the canonicalizer may and may not see.
Status
Pre-1.0 — the API is unstable and will change.
License
MIT
Metadata
Release files for glyff-pydantic 0.16.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 |
|---|---|---|---|---|
| glyff_pydantic-0.16.0.tar.gz | 7.9 kB | With provenance | Details for glyff_pydantic-0.16.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| glyff_pydantic-0.16.0-py3-none-any.whl | Python 3 | none | any | Details for glyff_pydantic-0.16.0-py3-none-any.whl |
Total release size: 13.0 kB
Release files / glyff_pydantic-0.16.0.tar.gz
| Download URL | glyff_pydantic-0.16.0.tar.gz |
|---|---|
| Size | 7.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e30a51c96d4bf91dff1733c93c7a4ecf8bf822fe516e9afb3df45dbb2cf14c8b
|
|
BLAKE2b-256 checksum How to use checksums |
bc8bbdeee2298a5f57654da17e1fd71953a0667b1c4c2e8d249a7037be4b2abd
|
| 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 Aug 15, 2026.
Transparency logRelease files / glyff_pydantic-0.16.0-py3-none-any.whl
| Download URL | glyff_pydantic-0.16.0-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bb374a193de3aa09365fcaa1a2f1a3876a375ff51c7c49d76eec88d1833f59e0
|
|
BLAKE2b-256 checksum How to use checksums |
dae5368cf18cf44d08f3357f498570be900627e0d73e767d670a3fe3a748be7b
|
| 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 Aug 15, 2026.
Transparency logSecurity for glyff-pydantic 0.16.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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for glyff_pydantic-0.16.0.tar.gz
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 Aug 15, 2026.
Transparency logA 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.