Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (
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


pip install DLNValidation


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


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