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!

Provides validation for the format of USA drivers license numbers

Project Description

A python library for validation of USA drivers license numbers. Dl-number-validation validates if a drivers license is a valid format for the two letter postal code for the state.

Formats are defined by http://www.deverusdemos.com/Help/FlashHelp/Search_Types/Formats_for_MVR_license_numbers.htm

Installation

pip install DLNValidation

Usage

Typical usage often looks like this:

from dlnvalidation import is_valid

if is_valid('C1234567', 'CA'):
    print "Your drivers license number is valid! Yay!"

If you want US territories to be used for validation call is_valid with allow_territories=True. Be warned, currently these additional territories accept any format of drivers license.

Release History

Release History

This version
History Node

0.3.1

History Node

0.3.0

History Node

0.2.1

History Node

0.2.0

History Node

0.1.4

History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

History Node

0.1.0

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
DLNValidation-0.3.1.tar.gz (2.8 kB) Copy SHA256 Checksum SHA256 Source Jan 23, 2017

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