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.2.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.2-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: returnz_pydantic-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 a53526c5c2354d5abf1a29c322261afb93af9ea33a19b466dbf89dd80b417ec6
MD5 cd6400e8ab7bb56cfa07d0541c07b0e8
BLAKE2b-256 6cc2bb278967bcfd3c4d77c3a667842b7de82d2476809cee3157b7ec9ecea2de

See more details on using hashes here.

File details

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

File metadata

  • Download URL: returnz_pydantic-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9f175ccc83f42316bb9f3bbc646d077b299249ff6cb133de7085489d8b37a009
MD5 7f4717ce05479103634c4910ef09ff87
BLAKE2b-256 e8c8b7da61ea3bbec685e784fea449b92b8422fa68a1e4e52b3aee6619ed2c4c

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