{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/6"}],"enrichment":{"capability":"Validates and formats Brazilian identification numbers including CNPJ, CEI, CPF, PIS/PASEP, CEP, and municipal codes, with support for both numeric and alphanumeric formats.","skillfed_tags":["brazil-specific","data-validation"],"use_cases":["Validate customer CNPJ or CPF during account registration or payment processing.","Parse CNPJ to extract firm and establishment identifiers for business lookup.","Format and clean Brazilian ID numbers from data imports or user input.","Validate CEP postal codes when processing Brazilian shipping addresses.","Batch-validate municipal codes from government or census data sources."],"what_it_does":"Brazilnum is a validation and formatting library for Brazilian identification numbers used by individuals, businesses, and government systems. It handles CNPJ (corporate tax ID), CEI (business registration), CPF (individual tax ID), PIS/PASEP (social security), CEP (postal codes), and IBGE municipal codes. The library accepts both formatted strings and raw numeric input, auto-corrects missing leading zeros in integers, and treats missing values (None, NaN) as invalid rather than raising errors\u2014useful for data pipelines with incomplete records.\n\nBeyond validation, it provides formatting functions to display identifiers in standard Brazilian notation, parsing functions to extract components (firm ID, establishment number, check digits), and utilities to clean formatting. It recently added support for alphanumeric CNPJ format introduced in 2026. The package has no external dependencies and supports Python 3.9 through 3.14, making it lightweight for integration into larger systems.","worth_installing":"Yes. The package is actively maintained, has zero known vulnerabilities, imposes no dependency overhead, and solves a specific domain problem well. Install it if you work with Brazilian identification numbers in production systems or data pipelines."},"id":"brazilnum","links":{"html":"https://skillfed.io/packages/brazilnum","md":"https://skillfed.io/packages/brazilnum.md","pypi":"https://pypi.org/project/brazilnum/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-07-24","license_spdx":"MIT","license_treatment":"permissive","name":"brazilnum","python_support":"supports_current","summary":"Validate Brazilian CNPJ, CEI, CPF, PIS/PASEP, CEP, and municipal numbers"},"popularity":{"monthly_downloads":337580,"position":7447,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.10.0"}
