![Pydantic V2](https://camo.githubusercontent.com/4c767b35e6592bbcb435ae88a0a24f32420343ab48adfd4c889a5fcbdd6061b7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f507964616e7469635f56322d2533453d322e302d32333334443035382e737667)
pip install brdocs-validation
Supported docs and its formats
Supports |
Description |
Format |
Format's support |
CNPJ |
|
12.345.678/9012-34 OR Without special chars |
|
CPF |
|
123.456.789-01 OR Without special chars |
|
CNH |
|
Only numbers |
Length: 11 |
NIS/PIS/PASEP/NIT |
Use NIS type for PIS, PASEP, NIT |
123.45678.90-1 OR Only numbers |
|
CNS |
Cartão Nacional de Saúde |
Only numbers |
|
RENAVAM |
|
Only numbers |
Length: 9, 10 & 11 |
TE |
Título de eleitor |
Only numbers |
|
CERT |
Certidão de casamento, nascimento e óbito |
Only numbers |
|
SEI |
Número do Processo SEI |
12345-67890123/4567-89 OR without special chars |
|
from br_docs import CNPJ, CPF, CNH, NIS, CNS, RENAVAM, TE, CERT, SEI
from pydantic import BaseModel
class User(BaseModel):
cpf: CPF
cnpj: CNPJ
cnh: CNH
nis: NIS
cns: CNS
renavam: RENAVAM
te: TE
cert: CERT
sei: SEI