Skip to main content

django-abrasileirado

Aplicação Django com campos específicos para o contexto brasileiro (CPF, CNPJ, CEP, UF, Município, etc).

Descrição

O django-abrasileirado fornece campos, formulários, validadores e mixins para facilitar o uso de dados brasileiros em projetos Django, como CPF, CNPJ, CEP, UF e Município, além de helpers para formulários e modelos.

Instalação

  1. Instale o pacote (exemplo para uso local):
pip install -e .
  1. Adicione django_brfied ao seu INSTALLED_APPS no settings.py do seu projeto Django:
INSTALLED_APPS = [
 ...
 'django_abrasileirado',
]

Uso Básico

Exemplo de uso de campos em um modelo:

from django_abrasileirado.models import CPFField, CNPJField, CEPField
from django_abrasileirado.models import UFField, MunicipioField


class Pessoa(models.Model):
    cpf = CPFField()
    cnpj = CNPJField()
    cep = CEPField()
    uf = UFField()
    municipio = MunicipioField()

Why I create abrasileirado? Because this is Brazil (Toretto, 2020).

Data types

  • 🚫 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
  • 🚫 CEP - Código de Endereçamento Postal - Empresa de Correio e Telegráfos (ECT)
  • 🚫 CNES - Cadastro Nacional de Estabelecimento de Saúde - DATASUS
  • 🚫 CNS - Cadastro Nacional de Saúde (Cartão SUS) - DATASUS
  • 🚫 CPF - Cadastro de Pessoa Física - Receita Federal do Brasil (RFB)
  • 🚫 CNPJ - Cadastro Nacional de Pessoa Jurídica - RFB
  • 🚫 Modulo11
  • 🚫 ProtocoloIntegrado
  • 🚫 ProtocoloJustica
  • 🚫 PJE
  • 🚫 Boleto
  • 🚫 NFE
  • 🚫 Município

Desenvolvimento Local & Documentação

  • Desenvolvimento Local: Para orquestração do ambiente de desenvolvimento local com Django e PostgreSQL, utilize o repositório privado workspace.
  • Documentação da Suíte: Acesse o portal oficial da organização em https://abrasileirado.github.io.

Licença

MIT. Veja o arquivo LICENSE.md para mais detalhes.

Autor

Kelson da Costa Medeiros (kelsoncm@gmail.com)

Metadata

Release files for django-abrasileirado 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-abrasileirado 1.0.0
File Size Uploaded Provenance Actions
django_abrasileirado-1.0.0.tar.gz 4.4 kB With provenance Details for django_abrasileirado-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-abrasileirado 1.0.0
File Interpreter ABI Platform Actions
django_abrasileirado-1.0.0-py3-none-any.whl Python 3 none any Details for django_abrasileirado-1.0.0-py3-none-any.whl

Total release size: 9.2 kB

Release files / django_abrasileirado-1.0.0.tar.gz

Download URL django_abrasileirado-1.0.0.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
69c8c8c1207582a5f223e93c33fd498279b87042377e64f4c65c0af68290194c
BLAKE2b-256 checksum
How to use checksums
ed3e28ccaa615a580b84b8cc0273814f10ebcdd4fae0bae35e09d3e9c16ace99
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 10, 2026.

Transparency log

Release files / django_abrasileirado-1.0.0-py3-none-any.whl

Download URL django_abrasileirado-1.0.0-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8f51ef431dbf6f92e8bc40fa949c7f2f91e10a9b8f46d63e09553bb7ba1275c3
BLAKE2b-256 checksum
How to use checksums
8c1dba3a5db5217174703a3183ef71ad2bce374b2bb4673da60da2be772fc331
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 10, 2026.

Transparency log

Security for django-abrasileirado 1.0.0

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for django_abrasileirado-1.0.0.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 Nov 10, 2026.

Transparency log

A 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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page