Validate brazilian documents using Type Hints in classes inheriting Pydantic's (V2) BaseModel
Project description
Install
pip install brdocs-validation
Supported docs and its formats
Supports | Format |
---|---|
CNPJ | 12.345.678/9012-34 OR Without special chars |
CPF | 123.456.789-01 OR Without special chars |
CNH | Only numbers |
Usage
from br_docs import CPF, CNPJ, CNH
from pydantic import BaseModel
class User(BaseModel):
name: str
age: int
cpf: CPF
cnpj: CNPJ
cnh: CNH
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for brdocs_validation-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d7a75db341507df624be5355987aacc79c08d60da05f6d50922065af5c4f04e |
|
MD5 | 7695e454609fd7e2b5d17b2b087a24e7 |
|
BLAKE2b-256 | 317d0fdc576e88261ce73763ba59cad8e4c90dff6ae1b37fce77d613e731b0a4 |