Python library specific brazilian objects and validations.
Project description
Python BRfied
Python library specific brazilian objects and validations.
FAQ 1:
Why I create abrasileirado? Because this is Brazil (Toretto, 2020).
FAQ 1:
Why are classes, properties, and methods in Portuguese? (Toretto, 2020) already answered.
FAQ 1:
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 - 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
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file abrasileirado-1.0.0.tar.gz.
File metadata
- Download URL: abrasileirado-1.0.0.tar.gz
- Upload date:
- Size: 21.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
078b7eb475f7d6b21ef718f65d78e71f2b24c0015e2c665ce9ed240335e313ae
|
|
| MD5 |
2ff36c1b90e890296d0a71aae0000045
|
|
| BLAKE2b-256 |
6892f5831667be0f087dfb0de810cb13e7eb5bba61f85da8577ed99337c0f8b1
|
Provenance
The following attestation bundles were made for abrasileirado-1.0.0.tar.gz:
Publisher:
publish.yml on abrasileirado/python_abrasileirado
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
abrasileirado-1.0.0.tar.gz -
Subject digest:
078b7eb475f7d6b21ef718f65d78e71f2b24c0015e2c665ce9ed240335e313ae - Sigstore transparency entry: 1487261465
- Sigstore integration time:
-
Permalink:
abrasileirado/python_abrasileirado@4aaa1326b936990b147f55cafb44ceb1c5592a9e -
Branch / Tag:
refs/tags/1.0.0 - Owner: https://github.com/abrasileirado
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4aaa1326b936990b147f55cafb44ceb1c5592a9e -
Trigger Event:
release
-
Statement type:
File details
Details for the file abrasileirado-1.0.0-py3-none-any.whl.
File metadata
- Download URL: abrasileirado-1.0.0-py3-none-any.whl
- Upload date:
- Size: 16.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6de5b8888bcc4cc5281b3a42fc381b0cb19a2452584f9492186e97e2199a036
|
|
| MD5 |
d2efdae5dc23a2d6fef8444742194aeb
|
|
| BLAKE2b-256 |
b7af3c563feb31cb02df776118130ec250df18c4e8466c4aa6805b7a5d705102
|
Provenance
The following attestation bundles were made for abrasileirado-1.0.0-py3-none-any.whl:
Publisher:
publish.yml on abrasileirado/python_abrasileirado
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
abrasileirado-1.0.0-py3-none-any.whl -
Subject digest:
c6de5b8888bcc4cc5281b3a42fc381b0cb19a2452584f9492186e97e2199a036 - Sigstore transparency entry: 1487261555
- Sigstore integration time:
-
Permalink:
abrasileirado/python_abrasileirado@4aaa1326b936990b147f55cafb44ceb1c5592a9e -
Branch / Tag:
refs/tags/1.0.0 - Owner: https://github.com/abrasileirado
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4aaa1326b936990b147f55cafb44ceb1c5592a9e -
Trigger Event:
release
-
Statement type: