Giter Site home page Giter Site logo

vn-labs / brdocs-validation Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 2.0 69 KB

Validar CPF CNPJ CNH NIS PIS PASEP NIT CNS RENAVAM TITULO ELEITOR CERTIDÃO | Use it as Type Hints in classes inheriting Pydantic's (V2) BaseModel

License: MIT License

Python 100.00%
cnpj-validador cpf-validador pydantic-v2 validador-pispasep validador-titulo-eleitor

brdocs-validation's Introduction

Test codecov PyPI - Version PyPI - Python Version Pydantic V2

Install

pip install brdocs-validation

Supported docs and its formats

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

Usage

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

brdocs-validation's People

Contributors

vinicius-oa avatar rafaelkamimura avatar

Stargazers

 avatar Rodrigo avatar  avatar Diego Alberto avatar

Watchers

 avatar

brdocs-validation's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.