A collection of Python validators for various Kazakhstani identification numbers, such as the Individual Identification Number (IIN) and Taxpayer Identification Number (TIN)
Project description
Kazakhstani Validators Package
A collection of Python validators for various Kazakhstani identification numbers, such as the Individual Identification Number (IIN) and Taxpayer Identification Number (TIN)
Installation
pip install py-kz-validators
Usage
Here are the available validators:
1. Individual Identification Number (IIN)
The IIN validator checks whether a given string represents a valid Kazakhstani Individual Identification Number.
from kz.validators import IIN
if IIN.is_valid('791028302728'):
print('IIN is valid')
else:
print('IIN is not valid')
This code will output IIN is valid
since the IIN 791028302728
is a valid Kazakhstani Individual Identification Number
Contributing
Contributions are welcome! If you have any suggestions or issues, please open an issue or pull request on the GitHub repository.
Local Installation for Contributors
make dev-deps
After making any changes, don't forget to run flake8(make lint
) and tests(make test
).
License
This package is licensed under the MIT License. See the LICENSE file for more information.
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
Built Distribution
File details
Details for the file py-kz-validators-0.0.2.tar.gz
.
File metadata
- Download URL: py-kz-validators-0.0.2.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3902826cc846a04167aa623280b3d591a89d523ea8dc7eb942d8cf582c3b189 |
|
MD5 | 7c187488565b7167d42226befc79d9a9 |
|
BLAKE2b-256 | 593e460ad692ec9bcdb21a74072811aac817b5174e2b81b3dc3aa3011d03ac89 |
File details
Details for the file py_kz_validators-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: py_kz_validators-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac0296714175c77fba3bb36d633c9aee555a3c1489b921e7b6c5f508d1a23d96 |
|
MD5 | a0b11ff1829d53a67a9ced35c6dc687c |
|
BLAKE2b-256 | 8ed695e9effb0712d59f79e81abb69dbd4c15a2fb09bf4d79211100492ce9b10 |