Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

glyff_pydantic-0.11.0.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

glyff_pydantic-0.11.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file glyff_pydantic-0.11.0.tar.gz.

File metadata

  • Download URL: glyff_pydantic-0.11.0.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for glyff_pydantic-0.11.0.tar.gz
Algorithm Hash digest
SHA256 6587179a1f2d3e7aafca28defb5de0e5c70b701778a995c10a5199cfe04a6cb4
MD5 2a9355656d16773365a6961c85545549
BLAKE2b-256 e637c2433220abe47f9c83f3d4acbd34a7a7b0c329d3fa8c81371512972030d0

See more details on using hashes here.

Provenance

The following attestation bundles were made for glyff_pydantic-0.11.0.tar.gz:

Publisher: publish-glyff-pydantic.yml on nueruyu/glyff

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file glyff_pydantic-0.11.0-py3-none-any.whl.

File metadata

File hashes

Hashes for glyff_pydantic-0.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 efe0ea4392ef62fb350c6569b9bcfb2725fe165855582680e0e583484cccab04
MD5 5f3ebfe1cb511ad4c66fdedd568254a3
BLAKE2b-256 8f200c663aa9644f01f638bfb670aa9d1407138fe40f56809deea1383175a24f

See more details on using hashes here.

Provenance

The following attestation bundles were made for glyff_pydantic-0.11.0-py3-none-any.whl:

Publisher: publish-glyff-pydantic.yml on nueruyu/glyff

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page