Skip to main content

Tools to test brazilian register numbers (CPF or CNPJ)

Project description

brazilian_register

Description. The package brazilian_register is used to:

  • Check brazilian Natural Persons Register number (Cadastro de Pessoa Física - CPF).
  • Check brazilian National Registry of Legal Entities (Cadastro Nacional da Pessoa Jurídica - CNPJ).

Installation

Use the package manager pip to install brazilian_register

pip install brazilian_register

Usage

import brazilian_register as br

To Check a cpf document number.

cpf = br.cpf('cpf number')
print(cpf.cpf_status())

True if the verification code is correct or False if not.

To get document input.

# as was informed
print(cpf.cpf_input)

# only numbers
print(cpf.cpf)

To get verification code input.

print(cpf.cpf_cod_in)

To get number output.

print(cpf.cpf_output)

To get verification code output.

print(cpf.cpf_cod_out)

To Check a cnpj document number.

cnpj = br.cnpj('cnpj number')
print(cnpj.cnpj_status())

True if the verification code is correct or False if not.

To get document input.

# as was informed
print(cnpj.cnpj_input)

# only numbers
print(cnpj.cnpj)

To get verification code input.

print(cnpj.cnpj_cod_in)

To get number output.

print(cnpj.cnpj_output)

To get verification code output.

print(cnpj.cnpj_cod_out)

Author

Phelipe Mathias

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

brazilian_register-0.0.4.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

brazilian_register-0.0.4-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file brazilian_register-0.0.4.tar.gz.

File metadata

  • Download URL: brazilian_register-0.0.4.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.10

File hashes

Hashes for brazilian_register-0.0.4.tar.gz
Algorithm Hash digest
SHA256 0f7c391d04ce1ff21b5e6ef3376fa4bcad838900998697e29417fd592a5c92f5
MD5 5c8d218d4b4f3dc9dc6813bd2c1fd5d6
BLAKE2b-256 776c17d1fd93b9e08c2811dfbf0d291a0a023c955e8075819386e61e63a655a4

See more details on using hashes here.

File details

Details for the file brazilian_register-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for brazilian_register-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b224b7381086d11b875a93d965f32ff1e3dcec865dd28b5a7a2c312c30e116ca
MD5 e5fcb2ade3dab4767a3feff5cc25ddd1
BLAKE2b-256 0af8478f679f5d1a105c8aeb0299a2f56ceee6719139b6a1ffca6c0f7ff95271

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page