Pydantic-based Serializer and ArgsHasher for glyff.
Project description
glyff-pydantic
Pydantic-based Serializer and ArgsHasher implementations for
glyff.
Enables glyff sessions to record arguments and results that are Pydantic
models, or any type Pydantic's TypeAdapter can handle.
Install
pip install glyff-pydantic
This package depends on glyff>=0.1.0 and pydantic>=2.0.
Public API
| Name | Description |
|---|---|
PydanticSerializer |
Serializes values to JSON using TypeAdapter. Restores typed values on read. |
PydanticArgsHasher |
Hashes function arguments by dumping them through TypeAdapter for stable, type-aware identity. |
Both work with arbitrary types supported by Pydantic v2: models, dataclasses, unions, generics, and standard library types.
Status
Early development. APIs may change before v1.0.
License
MIT
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 glyff_pydantic-0.1.0.tar.gz.
File metadata
- Download URL: glyff_pydantic-0.1.0.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4634d02af9f6b20963445df67b43be2f2682cd61ea3aa109f3bcaf1218a0d17
|
|
| MD5 |
aab8f5c435fd3df77299a809ec89b2c1
|
|
| BLAKE2b-256 |
b24a5da65221654d931264d9a3812f97816b39468c72597f680b77070433d940
|
Provenance
The following attestation bundles were made for glyff_pydantic-0.1.0.tar.gz:
Publisher:
publish-glyff-pydantic.yml on nueruyu/glyff
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
glyff_pydantic-0.1.0.tar.gz -
Subject digest:
a4634d02af9f6b20963445df67b43be2f2682cd61ea3aa109f3bcaf1218a0d17 - Sigstore transparency entry: 1592020449
- Sigstore integration time:
-
Permalink:
nueruyu/glyff@df78a7ffd9e787da40bedcd584f81b19636cdcaa -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/nueruyu
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-glyff-pydantic.yml@df78a7ffd9e787da40bedcd584f81b19636cdcaa -
Trigger Event:
push
-
Statement type:
File details
Details for the file glyff_pydantic-0.1.0-py3-none-any.whl.
File metadata
- Download URL: glyff_pydantic-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
253ace38527908bcf70f603fc0b976dd2d9b88b9d4f5fa2d4202e0d84333d380
|
|
| MD5 |
7ccbe167a9980fea8ccdc66c94a89803
|
|
| BLAKE2b-256 |
3c67c88879abf9126eada14cef4a1c3da935b293d1873d18eede37f6bd3e890a
|
Provenance
The following attestation bundles were made for glyff_pydantic-0.1.0-py3-none-any.whl:
Publisher:
publish-glyff-pydantic.yml on nueruyu/glyff
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
glyff_pydantic-0.1.0-py3-none-any.whl -
Subject digest:
253ace38527908bcf70f603fc0b976dd2d9b88b9d4f5fa2d4202e0d84333d380 - Sigstore transparency entry: 1592020470
- Sigstore integration time:
-
Permalink:
nueruyu/glyff@df78a7ffd9e787da40bedcd584f81b19636cdcaa -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/nueruyu
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-glyff-pydantic.yml@df78a7ffd9e787da40bedcd584f81b19636cdcaa -
Trigger Event:
push
-
Statement type: