Skip to content

adrianomargarin/cpf_cnpj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CPF e CNPJ

Validador de CPF e CNPJ.

Install

  pip install cpf_cnpj

Usage

  from cpf_cnpj import Cpf, Cnpj
  
  cpf = Cpf('85725262502')

  cpf.format()
  '857.252.625-02'
  
  cpf.cleaning()
  '85725262502'
  
  cpf.validate()
  True
  
  cnpj = Cnpj('97373439000100')

  cnpj.format()
  '97.373.439/0001-00'
  
  cnpj.cleaning()
  '97373439000100'
  
  cnpj.validate()
  True

Tests

  cd cpf_cnpj/tests

  ./run_tests.sh

About

Validadores de CPF e CNPJ, com cleaning e format dos mesmos.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages