
Security News
Open Source Maintainers Feeling the Weight of the EU’s Cyber Resilience Act
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
Validate brazilian documents using Type Hints in classes inheriting Pydantic's (V2) BaseModel
pip install brdocs-validation
Supports | Description | Format | Format's support |
---|---|---|---|
CNPJ | 12.345.678/9012-34 OR Without special chars | ||
CPF | 123.456.789-01 OR Without special chars | ||
CNH | Only numbers | Length: 11 | |
NIS/PIS/PASEP/NIT | Use NIS type for PIS, PASEP, NIT | 123.45678.90-1 OR Only numbers | |
CNS | Cartão Nacional de Saúde | Only numbers | |
RENAVAM | Only numbers | Length: 9, 10 & 11 | |
TE | Título de eleitor | Only numbers | |
CERT | Certidão de casamento, nascimento e óbito | Only numbers | |
SEI | Número do Processo SEI | 12345-67890123/4567-89 OR without special chars |
from br_docs import CNPJ, CPF, CNH, NIS, CNS, RENAVAM, TE, CERT, SEI
from pydantic import BaseModel
class User(BaseModel):
cpf: CPF
cnpj: CNPJ
cnh: CNH
nis: NIS
cns: CNS
renavam: RENAVAM
te: TE
cert: CERT
sei: SEI
FAQs
Validate brazilian documents using Type Hints in classes inheriting Pydantic's (V2) BaseModel
We found that brdocs-validation demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.