Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xvalidator-1.0.1.tar.gz (1.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xvalidator-1.0.1-py3-none-any.whl (2.0 kB view details)

Uploaded Python 3

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

Hashes for xvalidator-1.0.1.tar.gz
Algorithm Hash digest
SHA256 984d4d3424c11bb57085be53aba94b7cc5670fde0072acce7784976b331668b4
MD5 8794c2113151bcc218fc7f8227deb578
BLAKE2b-256 9da3cec44cd68cf2fb911698a79c03b40c9f107aba76a66b88ca02784b941a86

See more details on using hashes here.

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

Hashes for xvalidator-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5d64f9cac6cc7dfcdf596a330a0bbdd0ea9ffbc69c4f49cc52a1b422521cf9f5
MD5 e7f1bbba65fb891a2c38e75c314f730c
BLAKE2b-256 7bd3f09d11531d20f23c92098fa779b3b706cc28ad83cb2b0299bdfe4ffe4b7d

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