Skip to main content

anyquart_pydantic

anyquart extension for request and response validation with pydantic.

Annotate your route handlers with pydantic models and the body and response are validated automatically.

Install

pip install anyquart_pydantic

Usage

# app.py
from anyquart import AnyQuart
from pydantic import BaseModel
from anyquart_pydantic import AnyQuartPydantic

app = AnyQuart(__name__)
AnyQuartPydantic(app)


class User(BaseModel):
    name: str
    age: int


@app.route("/users", methods=["POST"])
async def create_user(user: User) -> User:
    return user

Run it:

$ anyquart --app app:app run
$ curl -X POST http://localhost:5000/users \
    -H "Content-Type: application/json" \
    -d '{"name": "Ada", "age": 37}'

License

MIT

Release files for anyquart-pydantic 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 anyquart-pydantic 0.1.0
File Size Uploaded
anyquart_pydantic-0.1.0.tar.gz 6.3 kB Details

Built distribution (wheel)

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

Total release size: 13.2 kB

Release files / anyquart_pydantic-0.1.0.tar.gz

Download URL anyquart_pydantic-0.1.0.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
25a98ef02f3f5ecdfaba83d1829d6ad6dfacaa89269005215928eb1fb6277c1f
BLAKE2b-256 checksum
How to use checksums
74abde3800bf4fb21a9bb66668ea1fe70dac44d4772886de0d55a1a85859e500
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 18, 2026.

Transparency log

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

Download URL anyquart_pydantic-0.1.0-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dc1032b8a2d5221ff19943650ee70ed0f11fbbdfc4856b3ffa3b89566fb1e251
BLAKE2b-256 checksum
How to use checksums
f67d55c77087cde52ae94994131918e92a18686be6e691a500e8336fa5c8ac63
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 18, 2026.

Transparency log

Release history Release notifications | RSS feed

0.2.0

2 release files

This release

0.1.0 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