Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

pydantic-annotated

Proof of concept Decomposing Field components into Annotated.

from typing import Annotated

from pydantic_annotated import BaseModel, Description, FieldAnnotationModel


class PII(FieldAnnotationModel):
    status: bool


class ComplexAnnotation(FieldAnnotationModel):
    x: int
    y: int


class Patient(BaseModel):
    name: str
    condition: Annotated[
        str,
        ComplexAnnotation(x=1, y=2),
        Description("Patient condition"),
        PII(status=True),
    ]

Metadata

Release files for pydantic-annotated 0.0.1a0

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

Source distribution (sdist)

Source distribution for pydantic-annotated 0.0.1a0
File Size Uploaded Provenance
pydantic-annotated-0.0.1a0.tar.gz 3.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pydantic-annotated 0.0.1a0
File Interpreter ABI Platform
pydantic_annotated-0.0.1a0-py3-none-any.whl Python 3 none any Details

Total release size: 6.4 kB

Release files / pydantic-annotated-0.0.1a0.tar.gz

Download URL pydantic-annotated-0.0.1a0.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
23822d59e30d9dd2ba6212367f387dbb610ddecb921e7976aeda17275355cc0b
BLAKE2b-256 checksum
How to use checksums
7569a8150f7ec866ccb80918844495fb08283480c7e08bd7e117c7fc04a26678
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.9.0 Darwin/20.1.0

Release files / pydantic_annotated-0.0.1a0-py3-none-any.whl

Download URL pydantic_annotated-0.0.1a0-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e3c14be64274433247b0b4725762633a39369180a4ff22d6099b036308ffd883
BLAKE2b-256 checksum
How to use checksums
06bb4f09d5cce9df7c55fd56dd711917d213506c4f7b6d7b48963d944b350b72
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.9.0 Darwin/20.1.0

Security for pydantic-annotated 0.0.1a0

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
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