Home
Python library specific brazilian objects and validations.
> Why I create django_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 django_abrasileirado compares to some popular alternatives:
Feature |
django_abrasileirado |
validate-docbr |
pycpfcnpj |
brutils |
|---|---|---|---|---|
CPF validation |
Yes |
Yes |
Yes |
Yes |
CNPJ validation |
Yes |
Yes |
Yes |
Yes |
Other docs (RG, CNH) |
Yes |
Yes |
No |
Yes |
Enums/types |
Yes |
No |
No |
No |
Typed objects |
Yes |
No |
No |
No |
Date/time support |
Yes |
No |
No |
No |
File parsing |
Yes |
No |
No |
No |
Serialization |
Yes |
No |
No |
No |
Test coverage |
100% |
Unknown |
Unknown |
Unknown |
Python 3.10+ |
Yes |
Yes |
Yes |
Yes |
django_abrasileirado focuses on typed objects, enums, and validations for Brazilian-specific data, while others are more focused on document validation only.
Features
Typed objects for CPF, CNPJ, RG, CNH, and Brazilian addresses.
Enums for Brazilian states, genders, and zones of habitation.
Installation
Requires Python 3.10+.
Quick example
To do