This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

domplus is a python package with common functions for commercial applications

Project Description

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.
Release History

Release History

This version
History Node

0.1.3

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
domplus-0.1.3.tar.gz (13.3 kB) Copy SHA256 Checksum SHA256 Source Apr 19, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting