Skip to main content

Pydantic-QPython

This project is a branch of pydantic on QPython.

Data validation using Python type hints.

Fast and extensible, Pydantic plays nicely with your linters/IDE/brain. Define how data should be in pure, canonical Python 3.9+; validate it with Pydantic.

A Simple Example

from datetime import datetime
from typing import Optional
from pydantic import BaseModel

class User(BaseModel):
    id: int
    name: str = 'John Doe'
    signup_ts: Optional[datetime] = None
    friends: list[int] = []

external_data = {'id': '123', 'signup_ts': '2017-06-01 12:22', 'friends': [1, '2', b'3']}
user = User(**external_data)
print(user)
#> User id=123 name='John Doe' signup_ts=datetime.datetime(2017, 6, 1, 12, 22) friends=[1, 2, 3]
print(user.id)
#> 123

Metadata

Release files for pydantic-qpython 2.9.2.1

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-qpython 2.9.2.1
File Size Uploaded
pydantic_qpython-2.9.2.1.tar.gz 361.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pydantic-qpython 2.9.2.1
File Interpreter ABI Platform
pydantic_qpython-2.9.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 768.4 kB

Release files / pydantic_qpython-2.9.2.1.tar.gz

Download URL pydantic_qpython-2.9.2.1.tar.gz
Size 361.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e4324c2bcb7ddee0556440864116f8d4f0fdb0800244f418134ba6f83c1cd2ae
BLAKE2b-256 checksum
How to use checksums
21976363a40a1a6e9cbd908fa080bb55671856f5b2be3e5978ca33fd1a555fb3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.7

Release files / pydantic_qpython-2.9.2.1-py3-none-any.whl

Download URL pydantic_qpython-2.9.2.1-py3-none-any.whl
Size 406.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7201d7d1e568b4a787addefc75ff87d87373c8a87501c52bd0918cd5da17721a
BLAKE2b-256 checksum
How to use checksums
7bb082407b413e774aeb682b77dc012d31afed5a23c82275f952d43da78a57b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.7

Release history Release notifications | RSS feed

This release

2.9.2.1 This release

2 release files

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