Metadata-Version: 2.4
Name: pydantic-qpython
Version: 2.9.2.1
Summary: Data validation using Python type hints
Author-email: The QPYPI Team <qpypi@qpython.org>
License: Python Software Foundation License
Project-URL: Homepage, https://qpypi.qpython.org/project/pydantic-qpython/
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Education
Classifier: Intended Audience :: Information Technology
Classifier: Intended Audience :: End Users/Desktop
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: Android
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development
Requires-Python: ==3.12.*
Description-Content-Type: text/markdown
Requires-Dist: pydantic-core-qpython>=2.24.4
Requires-Dist: annotated-types

# Pydantic-QPython

This project is a branch of <a target="_blank" rel="noopener" href="https://pypi.org/project/pydantic/">pydantic</a> on <a href="https://www.qpython.org">QPython</a>.

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