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 |
NIS/PIS/PASEP/NIT | 123.45678.90-1 OR Only numbers |
Usage
from br_docs import `Supports`
from pydantic import BaseModel
class User(BaseModel):
cpf: CPF
cnpj: CNPJ
cnh: CNH
nis: NIS
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.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 280ab24332b80c915efc29aec96c919d8881491056141531e95641896fc909d2 |
|
MD5 | 8be1eccb8ead2343ad36202750afe71d |
|
BLAKE2b-256 | 0f3563fe390e1561e5db05fff5fff3320140463baa1d10e65ef34bb23facd0c9 |