Skip to main content

This code simplifies the conversion of Pydantic schemas into Aiogram handler groups, making it easy to create form-filling handlers.

Project description

Pydantic-handler-converter

This code simplifies the conversion of Pydantic schemas into Aiogram handler groups, making it easy to create form-filling handlers.

Usage:

>>> from pydantic import BaseModel
>>> from pydantic_handler_converter import BasePydanticFormHandlers
>>> 
>>>
>>> class GreatPydanticFormSchema(BaseModel):
...     name: str
... 

>>> class GreatFormHanlders(BasePydanticFormHandlers[GreatPydanticFormSchema]): pass
... 

>>> assert GreatFormHanlders.Schema == GreatPydanticFormSchema

Project details


Release history Release notifications | RSS feed

This version

0.1.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pydantic_handler_converter-0.1.1.tar.gz (1.3 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file pydantic_handler_converter-0.1.1.tar.gz.

File metadata

  • Download URL: pydantic_handler_converter-0.1.1.tar.gz
  • Upload date:
  • Size: 1.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.10.6 Linux/5.15.0-1047-azure

File hashes

Hashes for pydantic_handler_converter-0.1.1.tar.gz
Algorithm Hash digest
SHA256 38fb275ede04a7a45921fef4d6c28285aa805b59a06d0cc9861c9bfd6ddaaf11
MD5 5850f0c3be6d794cb77be28b5bbad274
BLAKE2b-256 6ad1f4f4389300bba011124b98a6c900d08c7e5553faf8895b7383d34fbb1b4f

See more details on using hashes here.

File details

Details for the file pydantic_handler_converter-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pydantic_handler_converter-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 be053ebf1e6aff3774dee728bb96decfc102699e29f6f700eea7502afb8df9e4
MD5 b7987ba9a058e6d238cc073e914b658b
BLAKE2b-256 b3acd88e2ce97885ece7580d4ced832be3c287d7c31ad9afbae1cfdcedc66419

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page