DLNValidation-0.3.1
توضیحات
Provides validation for the format of USA drivers license numbers
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | DLNValidation-0.3.1 |
| نام | DLNValidation |
| نسخه کتابخانه | 0.3.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Mary Stufflebeam |
| ایمیل نویسنده | mary@postmates.com |
| آدرس صفحه اصلی | https://github.com/postmates/DLNValidation |
| آدرس اینترنتی | https://pypi.org/project/DLNValidation/ |
| مجوز | LICENSE.txt |
=============
DLNValidation
=============
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.
نحوه نصب
نصب پکیج whl DLNValidation-0.3.1:
pip install DLNValidation-0.3.1.whl
نصب پکیج tar.gz DLNValidation-0.3.1:
pip install DLNValidation-0.3.1.tar.gz