Skip to main content

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.

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

DLNValidation-0.3.1.tar.gz (2.8 kB view details)

Uploaded Source

File details

Details for the file DLNValidation-0.3.1.tar.gz.

File metadata

  • Download URL: DLNValidation-0.3.1.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for DLNValidation-0.3.1.tar.gz
Algorithm Hash digest
SHA256 507d66e1a5e0a7c5fcdfc8788cb5b1fa26c4bdd0b2e03f4327679d337ca8f167
MD5 5104a4e97f379a7c073035450d072750
BLAKE2b-256 30ed75eedc20dc69c342a5538b5969785c946ea183dd479c919da925698c17e5

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