Skip to main content

haus-fmt-uuid

The haus schema package @haus-fmt/uuid (Uuid) for Python, with the codecs of its profile rfc9562. Imported as haus_uuid.

pip install haus-fmt-uuid
// user.schema.haus
import @haus-fmt/uuid (Uuid)
type User = { id: Uuid }
import haus_uuid
from haus import schema

s = schema.load_schema("user.schema.haus", packages=[haus_uuid.PACKAGE], codecs=haus_uuid.rfc9562)
s["User"].parse('{ id: Uuid("0190c7a8-5b6e-7d3f-9a41-6c2e8f1b0d57") }')  # {'id': '0190c7a8-…'}
s["User"].parse('{ id: Uuid("0190C7A8-5B6E-7D3F-9A41-6C2E8F1B0D57") }')  # HausDecodeError: not a UUID

haus_uuid.PACKAGE is the package's directory (package.haus, schema.haus, profiles/). haus_uuid.rfc9562 is the profile's codec (a schema.CodecGroup; combine groups with |): a Uuid is accepted when its text is 32 digits 0-9, a-f in groups 8-4-4-4-12, joined by hyphens, lowercase only, of any version, and it decodes to that text, a str. haus_uuid.rfc9562_as_uuid checks the same and decodes to a uuid.UUID instead. Both keep the value: the text is the UUID's one spelling, and str() of a uuid.UUID writes it. The rule: profiles/rfc9562.md.

Metadata

Release files for haus-fmt-uuid 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for haus-fmt-uuid 1.0.0
File Size Uploaded Provenance Actions
haus_fmt_uuid-1.0.0.tar.gz 6.6 kB Without provenance Details for haus_fmt_uuid-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for haus-fmt-uuid 1.0.0
File Interpreter ABI Platform Actions
haus_fmt_uuid-1.0.0-py3-none-any.whl Python 3 none any Details for haus_fmt_uuid-1.0.0-py3-none-any.whl

Total release size: 13.0 kB

Release files / haus_fmt_uuid-1.0.0.tar.gz

Download URL haus_fmt_uuid-1.0.0.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b26404c2ce2f95cd0ba7fe6964f1c6886fd06bd209ac6896757ee793aee91f6d
BLAKE2b-256 checksum
How to use checksums
bc80d7b0aa141602025883014d4c05f85c76d3f3dffaa28d23e67ca8612a916b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / haus_fmt_uuid-1.0.0-py3-none-any.whl

Download URL haus_fmt_uuid-1.0.0-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4020480bb3a1ed91c7bd9606eb5ddde7e045f2b01f188ab4c298ac1cda2ed266
BLAKE2b-256 checksum
How to use checksums
2720e94187b72e4e7d4da80aa3d5495a29c92beebad2f956309d32e83e1a1d13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for haus-fmt-uuid 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page