A simple Python package for validation
Project description
XValidator
xvalidator is a simple Python package for validation. It includes a module for validating Iran National Codes.
Installation
You can install xvalidator using pip:
pip install xvalidator
Iran National Code Validation
The package provides a function is_nationalcode for validating Iran National Codes. The function takes a string representing the National Code and returns True if the code is valid and False otherwise.
from xvalidator import is_nationalcode
# Validate Iran National Code
result = is_nationalcode('1234567890')
if result:
print("Valid National Code")
else:
print("Invalid National Code")
Contributing
Contributions are welcome! If you find issues or have improvements, feel free to open an issue or submit a pull request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
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
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 xvalidator-1.0.1.tar.gz.
File metadata
- Download URL: xvalidator-1.0.1.tar.gz
- Upload date:
- Size: 1.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
984d4d3424c11bb57085be53aba94b7cc5670fde0072acce7784976b331668b4
|
|
| MD5 |
8794c2113151bcc218fc7f8227deb578
|
|
| BLAKE2b-256 |
9da3cec44cd68cf2fb911698a79c03b40c9f107aba76a66b88ca02784b941a86
|
File details
Details for the file xvalidator-1.0.1-py3-none-any.whl.
File metadata
- Download URL: xvalidator-1.0.1-py3-none-any.whl
- Upload date:
- Size: 2.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d64f9cac6cc7dfcdf596a330a0bbdd0ea9ffbc69c4f49cc52a1b422521cf9f5
|
|
| MD5 |
e7f1bbba65fb891a2c38e75c314f730c
|
|
| BLAKE2b-256 |
7bd3f09d11531d20f23c92098fa779b3b706cc28ad83cb2b0299bdfe4ffe4b7d
|