Skip to main content

Python library to validate Indian identifiers like PAN, Aadhaar, GSTIN, and IFSC.

Project description

pyvalidex

pyvalidex is a Python library for validating Indian identifiers. It provides simple functions to validate PAN, Aadhaar, GSTIN, and IFSC codes. Designed to be lightweight, easy to use, and Pythonic, it’s perfect for projects that require Indian ID validations.


Features

  • Validate PAN numbers (ABCDE1234F)
  • Validate Aadhaar numbers (12-digit numeric)
  • Validate GSTIN numbers (22AAAAA0000A1Z5)
  • Validate IFSC codes (BANKXXXXXXX)
  • Lightweight, dependency-free

Installation

pip install pyvalidex

Usage

from pyvalidex import validator

PAN

print(validator.is_pan("ABCDE1234F")) # True print(validator.is_pan("abcde1234f")) # False

Aadhaar

print(validator.is_aadhaar("123412341234")) # True print(validator.is_aadhaar("1234")) # False

GSTIN

print(validator.is_gstin("22AAAAA0000A1Z5")) # True print(validator.is_gstin("INVALIDGST")) # False

IFSC

print(validator.is_ifsc("SBIN0001234")) # True print(validator.is_ifsc("1234567890")) # False

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

pyvalidex-0.1.1.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

pyvalidex-0.1.1-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file pyvalidex-0.1.1.tar.gz.

File metadata

  • Download URL: pyvalidex-0.1.1.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for pyvalidex-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c6fe09409c1f4120c36822072199f979ef20736dee361ceb621eae8f4958846f
MD5 63d119a402463491732e0c3bff6c6d98
BLAKE2b-256 4c9ae44246973e6298e0d0ad1f3b43ef895550b500d514b1bc061aabb128042f

See more details on using hashes here.

File details

Details for the file pyvalidex-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pyvalidex-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for pyvalidex-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3025c0429526e45798fac0162c7f3bc1a0985d3449de3ff1acf1362605c9a2ca
MD5 06c5528f1f87b07913241f223d956888
BLAKE2b-256 48364c642e70444cba7ec883bd087287adb34b5cda6da2e2e4cf2237260f53db

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