Skip to main content

returnz-pydantic

Pydantic v2 integration for returnz. Python 3.14+.

  • RzResult[T, E] / RzMaybe[T] — use as Pydantic field types. They serialize as tagged envelopes ({"ok": …} / {"err": …} / {"some": …} / {"nothing": true}) and reconstruct by tag, so a value survives any boundary (JSON, structured clone, RPC). Some(None) stays distinct from Nothing. Keep using plain Result / Maybe everywhere else — the core stays Pydantic-free.
  • parse(Model, data) / parse_json(Model, data) — validation as a boundary: Result[Model, ValidationError].
  • TaggedError — base for matchable, serializable typed errors.

Download files

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

Source Distribution

returnz_pydantic-0.1.4.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

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

returnz_pydantic-0.1.4-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file returnz_pydantic-0.1.4.tar.gz.

File metadata

  • Download URL: returnz_pydantic-0.1.4.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for returnz_pydantic-0.1.4.tar.gz
Algorithm Hash digest
SHA256 3f9173e2717297c4ac84b57ed0defc1edc2df865cce29172e8a67e0b5ac81386
MD5 e20bd0d080d4276aceeb437289b1ee15
BLAKE2b-256 dcffe1645fab022083105e8962ad0fdf2bd48a7d674b7c7ff91dae68e54e9661

See more details on using hashes here.

File details

Details for the file returnz_pydantic-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: returnz_pydantic-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for returnz_pydantic-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 daea31dee2f17e8084fb799aef35d555692376dd3c645077f87f476b0f301410
MD5 fb777ba841fb7951d794f7b33f9cd15e
BLAKE2b-256 b014997809195c3835e068b1213b3e8ef4aa38c7f3dfde52abfec260cda71e95

See more details on using hashes here.

Supported by

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