Primary Account Number validation tool
Project description
PAN validator
A Primary Account Number validation tool.
Install
pip install panvalidator
Usage
>>> import panvalidator
>>> result = panvalidator.validate('4444444444444422')
>>> result.is_valid()
True
>>> result = panvalidator.validate('ab')
>>> result.is_valid()
False
>>> print(result.message)
Given PAN has following issue(s):
1. Invalid length 2.
2. PAN should have only digits, found: a, b.
3. Invalid IIN -1.
4. Invalid luhn.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
panvalidator-0.0.1.tar.gz
(3.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file panvalidator-0.0.1.tar.gz.
File metadata
- Download URL: panvalidator-0.0.1.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f0f6e2f5286ca5f8b00121846d8b9d51be2a058fe81e2d1e879afb0cc2a9d36
|
|
| MD5 |
83479b2a252b9286f65d0f172e149c34
|
|
| BLAKE2b-256 |
489bd0cf9288b96dc89f0080e99ee0c10fff0dc1eedde1477a77d63a884b1aed
|
File details
Details for the file panvalidator-0.0.1-py3-none-any.whl.
File metadata
- Download URL: panvalidator-0.0.1-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe5513566a6fc71ababc7ad1280c6bed5ac19f57076765086b8f89b3d0e812a7
|
|
| MD5 |
1fa30540dcf38a8bfdbdfb5aa5d9c6a0
|
|
| BLAKE2b-256 |
2ace057390b9d5020c068856db95c3c360e838bc955f4be0afdb2f11a339abc0
|