Skip to main content

domplus is a python package with common functions for commercial applications

Project description

Test Status Code Helth Latest PyPI version Downloads Chat

domplus is a python package with common functions for commercial applications.

Features

  • Check if string is brazilian CPF valid
  • Check if string is brazilian CNPJ valid
  • Check if string is brazilian CPF valid or brazilian CNPJ valid
  • Check if credit card number is valid

Installation

pip install domplus

Usage govplus

from domplus import govplus

# Check if string is brazilian CPF valid. Return True or False
govplus.is_valid_br_cpf("03167158590")

# OR
govplus.is_valid_br_cpf("031.671.585-90")

# Check if string is brazilian CNPJ valid. Return True or False
govplus.is_valid_br_cnpj("75317134000130")

# OR
govplus.is_valid_br_cnpj("75.317.134/0001-30")

# Check if string is brazilian CPF valid or brazilian CNPJ valid.
# Return "cpf", "cnpj" or False
govplus.is_br_cpf_or_cnpj("03167158590")

# OR
govplus.is_br_cpf_or_cnpj("031.671.585-90")

# OR
govplus.is_br_cpf_or_cnpj("75317134000130")

# OR
govplus.is_br_cpf_or_cnpj("75.317.134/0001-30")

Usage financeplus

from domplus import financeplus

# Check if string is a Credcard Number valid.
# Return True or False
financeplus.is_valid_creditcard("374356783424314")

History

0.1.3 (2015-04-19)

  • First release on PyPI.

Project details


Release history Release notifications

This version
History Node

0.1.3

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
domplus-0.1.3.tar.gz (13.3 kB) Copy SHA256 hash SHA256 Source None Apr 19, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page