Typesafe, composable validation
Project description
Koda Validate
Build typesafe validators automatically or explicitly -- or write your own. Combine them to build validators of arbitrary complexity. Koda Validate is async-friendly, pure Python, and 1.5x - 12x faster than Pydantic.
Docs: https://koda-validate.readthedocs.io/en/stable/
from typing import TypedDict
from koda_validate import *
# Explicit Validators
string_validator = StringValidator(MinLength(8), MaxLength(20))
list_string_validator = ListValidator(string_validator)
# Derived Validators
class Person(TypedDict):
name: str
hobbies: list[str]
person_validator = TypedDictValidator(Person)
There's much, much more... Check out the Docs.
Something's Missing Or Wrong
Open an issue on GitHub please!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
koda_validate-3.0.0.tar.gz
(34.3 kB
view hashes)
Built Distribution
Close
Hashes for koda_validate-3.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 667ab0299a1862b2a9db12384abddc9de824624c6b81fdad861abe63d58cf631 |
|
MD5 | 2af591d72a9629ccc63a74eb13af83d2 |
|
BLAKE2b-256 | 22f46d05ea82e8bfb2813312cbf387ef7d70ba9a12d696c3983032d12e1c62be |