Home
Python library specific brazilian objects and validations.
> Why I create abrasileirado? Because this is Brazil (Toretto, 2020).
> Why are classes, properties, and methods in Portuguese? (Toretto, 2020) already answered.
Compare with others packages
There are several Python packages for Brazilian data validation and utilities. Here’s how abrasileirado compares to some popular alternatives:
Feature |
abrasileirado |
validate-docbr |
pycpfcnpj |
brutils |
|---|---|---|---|---|
Test coverage |
100% |
Unknown |
Unknown |
99% |
Python 3.10+ |
✅ |
✅ |
✅ |
✅ |
Immutable typed objects |
✅ |
🚫 |
🚫 |
🚫 |
CPF validation |
✅ |
✅ |
✅ |
✅ |
CNPJ validation |
✅ |
✅ |
✅ |
✅ |
CNH validation |
✅ |
✅ |
🚫 |
✅ |
CNS validation |
✅ |
✅ |
🚫 |
✅ |
CNES validation |
✅ |
✅ |
🚫 |
✅ |
PIS validation |
✅ |
✅ |
🚫 |
✅ |
RENAVAM validation |
✅ |
✅ |
🚫 |
✅ |
Titulo eleitoral validation |
✅ |
✅ |
🚫 |
✅ |
NUP validation |
✅ |
🚫 |
🚫 |
🚫 |
Telefone validation |
✅ |
🚫 |
🚫 |
🚫 |
Passaporte validation |
✅ |
🚫 |
🚫 |
🚫 |
Placa veicular validation |
✅ |
🚫 |
🚫 |
🚫 |
Certidão validation |
🚫 |
✅ |
🚫 |
🚫 |
Sim/Não enum |
✅ |
🚫 |
🚫 |
🚫 |
Estado civil enum |
✅ |
🚫 |
🚫 |
🚫 |
Cor/raça enum |
✅ |
🚫 |
🚫 |
🚫 |
Sexo enum |
✅ |
🚫 |
🚫 |
🚫 |
Gênero enum |
✅ |
🚫 |
🚫 |
🚫 |
Deficiência enum |
✅ |
🚫 |
🚫 |
🚫 |
Zona de habitação enum |
✅ |
🚫 |
🚫 |
🚫 |
Região geopolítica enum |
✅ |
🚫 |
🚫 |
🚫 |
Unidade federativa enum |
✅ |
🚫 |
🚫 |
🚫 |
Grupo de natureza jurídica enum |
✅ |
🚫 |
🚫 |
🚫 |
Natureza jurídica enum |
✅ |
🚫 |
🚫 |
🚫 |
abrasileirado focuses on typed objects, enums, and validations for Brazilian-specific data, while others are more focused on document validation only.
Installation
Requires Python 3.10+.
Quick example
To do