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

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.2.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

  • Download URL: pydantic_handler_converter-0.1.2.tar.gz
  • Upload date:
  • Size: 3.8 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.2.tar.gz
Algorithm Hash digest
SHA256 5f703491fbededf2f8d6581aec3d3f2b63d194525537a6551db1fcd0831e3b52
MD5 b787aaec30402069ae91f6c8841ec226
BLAKE2b-256 6bd8e67a615d04db5a28d692bf75b98bfd05e4810d7ea18263dc3e8f01df7e5b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pydantic_handler_converter-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6a2316df9df23f705641d6e4457847a62e3c3d16518952d481c0cf80511a22fa
MD5 eebcf8ad409646d9e914f7ee3d95912e
BLAKE2b-256 e612cb30c25f69bba6b47607eb61dbd90d6d6947da44eee300c837a45d7196dc

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