This release is a pre-release and may not be stable for production use.
plonegovbr.brfields 🚀
Plone package implementing Dexterity fields for common data types used in Brazil.
Features ✨
This package provides the following Dexterity fields:
- CEP (
plonegovbr.brfields.fields.CEP): 🏠 A text field for validating and storing Brazilian postal codes (CEP) with basic format validation. - CNPJ (
plonegovbr.brfields.fields.CNPJ): 🏢 A text field for validating and storing Brazilian company registration numbers (CNPJ) with value validation. - CPF (
plonegovbr.brfields.fields.CPF): 🆔 A text field for validating and storing Brazilian individual taxpayer numbers (CPF) with value validation. - Estados (
plonegovbr.brfields.fields.Estados): 📍 A choice field with a predefined vocabulary of Brazilian states, usingplonegovbr.vocabulary.estadosfor validation. - Telefone (
plonegovbr.brfields.fields.Telefone): 📞 A text field for validating and storing Brazilian phone numbers.
Additionally, the package provides the following named vocabulary:
plonegovbr.vocabulary.estados: 📌 A predefined list of Brazilian states.
Compatibility ✅
| Plone | 6.1 and 6.2 |
| Python | 3.11 to 3.14 |
Installation 🛠️
Add plonegovbr.brfields to the dependencies list under the [project] section of your project's pyproject.toml:
dependencies = [
"Products.CMFPlone",
"plonegovbr.brfields",
]
Then install the dependencies as your project normally does, and install the Brazilian Fields for Dexterity and Volto: Install profile in your site.
The documentation has the full installation guide.
Usage 📖
To use one of these fields in your content type, import the required field and include it in your schema definition.
Example:
from plone.supermodel import model
from plonegovbr.brfields import _
from plonegovbr.brfields.fields import CPF
class IDemoContent(model.Schema):
"""Demo content showcasing all available fields."""
cpf = CPF(
title=_("CPF"),
description=_("Enter the CPF number"),
required=True,
)
Volto Support ⚡
For Volto support, you need to add the package @plonegovbr/volto-brwidgets to your Volto project. This package provides widgets to properly render the Brazilian-specific fields in the Volto UI.
Contributing 🤝
Contributions are welcome! If you find any issues or want to suggest improvements, please check out:
License 📜
This project is licensed under the GPLv2.
Credits & Acknowledgements 🙏
This package was developed and maintained by the PloneGov-BR community ❤️.
Metadata
Release files for plonegovbr.brfields 1.0.0b1
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 | |
|---|---|---|---|---|
| plonegovbr_brfields-1.0.0b1.tar.gz | 31.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| plonegovbr_brfields-1.0.0b1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 65.8 kB
Release files / plonegovbr_brfields-1.0.0b1.tar.gz
| Download URL | plonegovbr_brfields-1.0.0b1.tar.gz |
|---|---|
| Size | 31.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4736d3f9cc32512b2092aae0c7a572d9ee3a0cb7e2bf8c87568adeb75f690dec
|
|
BLAKE2b-256 checksum How to use checksums |
9e32883dcb1db1419d136e123877e7af36b2ec15bd55f0ae0cb9a95f935202d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / plonegovbr_brfields-1.0.0b1-py3-none-any.whl
| Download URL | plonegovbr_brfields-1.0.0b1-py3-none-any.whl |
|---|---|
| Size | 34.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c7f037f2bbb188d0cb7fa739b1b0a5eac6bee2274daf48f7c63ff4d4324eaa46
|
|
BLAKE2b-256 checksum How to use checksums |
46efd967827641b0a20cea2cdf6074b53fb4bb5c7e38ff399946d3e99db4719e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for plonegovbr.brfields 1.0.0b1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.