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.4.0.tar.gz (6.0 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.4.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: glyff_pydantic-0.4.0.tar.gz
  • Upload date:
  • Size: 6.0 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.4.0.tar.gz
Algorithm Hash digest
SHA256 3b5f43e27b88427cc4bb8d48a98d53279fe1579e190615250572ab5556659250
MD5 8e76813ef8be7573675b182df03d65c6
BLAKE2b-256 f1fde3abde4d02f14f782d4647b3b639a604578985154a3e57c7de00e4b4519b

See more details on using hashes here.

Provenance

The following attestation bundles were made for glyff_pydantic-0.4.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.4.0-py3-none-any.whl.

File metadata

  • Download URL: glyff_pydantic-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for glyff_pydantic-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a6afc76bd3dd1471bb58b7428a3bc88a1118804407c489b132dffc1b5837d604
MD5 b09ac0444894fad70e7f9071662c0966
BLAKE2b-256 1b648dce5d7e8a1f8a7fb9053844cbd858ea3298f9966ba650f5c4f856c79c40

See more details on using hashes here.

Provenance

The following attestation bundles were made for glyff_pydantic-0.4.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