Skip to main content

pydantic-basedtyping

support for basedtyping features with pydantic:

from __future__ import annotations

from pydantic import BaseModel

class A(BaseModel):
    a: 1 | 2
A(a=1)  # A(a=1)
A(a=2)  # A(a=2)
A(a=3)  # ValidationError

installation

  1. add pydantic-basedtyping as a dependency
  2. install the plugin with:
    python -m pydantic_basedtyping install
    

if you are using pyprojectx, this can be configured:

[tool.pyprojectx]
install = ["uv sync", "uv run python -m pydantic_basedtyping install"]

Metadata

Release files for pydantic-basedtyping 0.1.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 pydantic-basedtyping 0.1.0
File Size Uploaded Provenance Actions
pydantic_basedtyping-0.1.0.tar.gz 26.3 kB Without provenance Details for pydantic_basedtyping-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pydantic-basedtyping 0.1.0
File Interpreter ABI Platform Actions
pydantic_basedtyping-0.1.0-py3-none-any.whl Python 3 none any Details for pydantic_basedtyping-0.1.0-py3-none-any.whl

Total release size: 29.9 kB

Release files / pydantic_basedtyping-0.1.0.tar.gz

Download URL pydantic_basedtyping-0.1.0.tar.gz
Size 26.3 kB
Tags Source
SHA-256 checksum
How to use checksums
73bf29f6f566bb51966a3da48a95b7f435d090ad3e0cb6997afe3cb3ba356663
BLAKE2b-256 checksum
How to use checksums
7367f49f6f9d27e5bd5cfe22a28f6f4eab6dd6035ce598eb255969aeca0a6b54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.4.26

Release files / pydantic_basedtyping-0.1.0-py3-none-any.whl

Download URL pydantic_basedtyping-0.1.0-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5117fda05606d36aca135dd4eb0dafaee971778e1d03652dfbfb189d55602cc0
BLAKE2b-256 checksum
How to use checksums
d4168fe3af10ebf003dbe834755ebbec19ee801225eb9bf2de6e4384de04b147
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.4.26

Security for pydantic-basedtyping 0.1.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

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