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

Uploaded Python 3

File details

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

File metadata

  • Download URL: returnz_pydantic-0.1.0.tar.gz
  • Upload date:
  • Size: 5.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.0.tar.gz
Algorithm Hash digest
SHA256 4c6db83d18c34fd081089da201808da6ba082ae04cafb0bcadde16989b3777b4
MD5 b925ec0c04d8ec41f92319dd984a9c0c
BLAKE2b-256 76748240e331946e61777d000fdaa0e228ba972ff6622d65776def1065f62b45

See more details on using hashes here.

File details

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

File metadata

  • Download URL: returnz_pydantic-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.0 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 50c4cb3a11d127f5836e7404280293e19f25fc779625d6ee1029b0c9f0320505
MD5 73da0038742fd2d9d705fca81cbc9dfc
BLAKE2b-256 87b5d9a8887692942499689ed8deb1d585fd84ef68880c2d3debf1666890f5fd

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