Python BRfied
Python library specific brazilian objects and validations.
FAQ 1:
Why I create abrasileirado? Because this is Brazil (Toretto, 2020).
FAQ 2:
Why are classes, properties, and methods in Portuguese? (Toretto, 2020) already answered.
FAQ 3:
Why not
validate-docbr,pycpfcnpjorbrutils? Because I prefer Immutable classes and here we have more types implementeds. See comparation.
Immutable classes
With validation, formating and unformating
- ✅ CEP - Código de Endereçamento Postal - Empresa de Correio e Telegráfos (ECT)
- ✅ EnderecoBrasil - ECT
- ✅ CPF - Cadastro de Pessoa Física - Receita Federal do Brasil (RFB)
- ✅ CNPJ (new and old standard) - Cadastro Nacional de Pessoa Jurídica - RFB
- ✅ CNES - Cadastro Nacional de Estabelecimento de Saúde - DATASUS
- ✅ CNS - Cadastro Nacional de Saúde (Cartão SUS) - DATASUS
- ✅ PIS - Programa de Integração Social - Tesouro Nacional
- ✅ RENAVAM - Registro Nacional de Veículos Automotores - Secretaria Nacional de Trânsito (Senatran)
- ✅ TituloEleitoral - Tribunal Superior Eleitoral - TSE
- ✅ Telefone - Agência Nacional de Telecomunicações (Anatel)
- ✅ Passaporte - Polícia Federal (PF)
- ✅ PlacaVeicular - Conselho Nacional de Trânsito (CONTRAN)
- ✅ NUP - Número Único de Processo - Conselho Nacional de Justiça (CNJ)
- ✅ CertidaoRCPN - Certidão de nascimento, casamento e outros - Conselho Nacional de Justiça (CNJ)
CEP, EnderecoBrasil, CPF, CNPJ, CNH, CNS, CNES, PIS, RENAVAM, Titulo eleitoral, NUP, Telefone, Passaporte, Placa veicular, Certidão
Enums
In accordance with regulatory bodies
-
✅ Sim/Não (Enum)
-
✅ Estado Civil (Enum) - Instituto Brasileiro de Geografia e Estatística (IBGE)
-
✅ Cor/Raça (Enum) - IBGE
-
✅ Sexo (Enum) - IBGE
-
✅ Gênero (Enum) - IBGE*
-
✅ Deficiência (Enum) - IBGE
-
✅ Zona de habitação (Enum) - IBGE
-
✅ Região geopolítica (Enum) - IBGE
-
✅ Unidade federativa (Enum) - IBGE
-
✅ Grupo de natureza jurídica (Enum) - IBGE
-
✅ Natureza jurídica (Enum) - IBGE
-
🚫 Modulo11
-
🚫 ProtocoloIntegrado
-
🚫 ProtocoloJustica
-
🚫 PJE
-
🚫 Boleto
-
🚫 NFE
-
🚫 Municipio
Validações e formatações
- validate_masked_value
- validate_cpf
- validate_cnpj
- validate_mask
- validate_mod11
- validate_dv_by_mask
- CEP
- Data
- Hora
- Data e hora
- CNES
- CNS
- Protocolo integrado (https://protocolointegrado.gov.br/Protocolo/projeto.jsf)
- Protocolo justiça (https://www.conjur.com.br/2009-jan-23/cnj-define-padrao-numeracao-processos-todos-tribunais http://www.stf.jus.br/portal/cms/verTexto.asp?servico=processoPeticaoEletronica&pagina=Informacoes_gerais_apos_desligamento_v1)
- PJe
- Linha digitável de boleto
- Código de barra de boleto
- Linha digitável de título
- Código de barra de título
- Nota fiscal eletrônica
- Código de município do IBGE (https://github.com/chinnonsantos/sql-paises-estados-cidades https://concla.ibge.gov.br/classificacoes/por-tema/codigo-de-areas/codigo-de-areas)
- is_only_digits
- apply_mask
Metadata
Release files for abrasileirado 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| abrasileirado-1.0.1.tar.gz | 21.9 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| abrasileirado-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 38.9 kB
Release files / abrasileirado-1.0.1.tar.gz
| Download URL | abrasileirado-1.0.1.tar.gz |
|---|---|
| Size | 21.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d78ec3d63efd773870b00133bbe10c9f6eb257f10bcc9bb2c7794f8b9ea09b7d
|
|
BLAKE2b-256 checksum How to use checksums |
182fffadfce1b4dcd5efd54d27e73322381dc977fa571a938ef1cd8ca442a4e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 9, 2026.
Transparency logRelease files / abrasileirado-1.0.1-py3-none-any.whl
| Download URL | abrasileirado-1.0.1-py3-none-any.whl |
|---|---|
| Size | 17.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9ccd242088030177a70900ebda810134c79d7d073f5a0a8c306b18590745c6cf
|
|
BLAKE2b-256 checksum How to use checksums |
ff8c3984256a1d745ddf4f99cb90d2101e3ae6ffbe5dd11e9c8282ad7bba216d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 9, 2026.
Transparency logSecurity for abrasileirado 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for abrasileirado-1.0.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 9, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.