Skip to main content

The definitive Indian developer toolkit — validate Aadhaar, PAN, GSTIN, IFSC, UPI, pincode and more

Project description

india-kit

The definitive Indian developer toolkit for Python. Validate Aadhaar, PAN, GSTIN, IFSC, UPI, pincode and more — zero dependencies, fully typed.

Install

pip install india-kit

Usage

from india_kit import (
    validate_pan, mask_pan, mock_pan,
    validate_aadhaar, mock_aadhaar,
    validate_gstin, mock_gstin,
    validate_ifsc, lookup_ifsc,
    validate_upi,
    validate_pincode, lookup_pincode,
    split_gst,
)

validate_pan("ABCDE1234F")      # {"valid": True}
validate_aadhaar("234123412346") # {"valid": True/False}
validate_gstin("27ABCDE1234F1Z5") # {"valid": True/False}
validate_ifsc("SBIN0000001")    # {"valid": True}
validate_upi("alice@icici")     # {"valid": True}
validate_pincode("110001")      # {"valid": True}

lookup_ifsc("SBIN0000001")      # {"bank": "State Bank of India", ...}
lookup_pincode("110001")        # {"district": "Central Delhi", "state": "Delhi"}

split_gst(1000, 18)             # {"cgst": 90.0, "sgst": 90.0, "igst": 0.0, "total_tax": 180.0}
split_gst(1000, 18, intra_state=False)  # {"cgst": 0.0, "sgst": 0.0, "igst": 180.0, ...}

mask_pan("ABCDE1234F")          # "ABCXX1234F"
mock_pan()                      # random valid PAN
mock_aadhaar()                  # random valid Aadhaar

License

MIT

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

india_kit-0.1.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

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

india_kit-0.1.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file india_kit-0.1.0.tar.gz.

File metadata

  • Download URL: india_kit-0.1.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for india_kit-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9406f3d1197c904b9a2015f853e93e320f3943309dfb04867eecef8fab624641
MD5 5a83286de0eb6643d7a8e7b29de778c0
BLAKE2b-256 32a1d76e7c9384adbcd57fc2075fa84b7678215a2143c548dcc764321c3418d0

See more details on using hashes here.

File details

Details for the file india_kit-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: india_kit-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for india_kit-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0c45c00764c89d140192bf6b955f22e7a474839b4ec7dba00e51fd104bc88626
MD5 7de61e882c8e394b9e0a9c4e7b01c367
BLAKE2b-256 69d19ccbf57274e3cb28c23a7c1da0ccad1e2ac0fad86f21ffc9e668ff310192

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