Skip to main content

validation package for Indian phone numbers, gmail and SBI IFSC codes

Project description

tommyexp

A lightweight Python package for validating common Indian data formats using Regular Expressions.

Currently supported validations:

  • Indian Phone Numbers
  • Gmail Addresses
  • SBI IFSC Codes

Features

✅ Indian Mobile Number Validation
✅ Gmail Validation
✅ SBI IFSC Validation
✅ Beginner Friendly
✅ Lightweight & Fast
✅ Easy to Integrate


Installation

pip install tommyexp

Usage

Import Functions

from tommyexp import phone, gmail, ifsc

Validate Indian Phone Number

from tommyexp import phone

print(phone("9876543210"))

Output

True

Validate Gmail Address

from tommyexp import gmail

print(gmail("sample@gmail.com"))

Output

True

Validate SBI IFSC Code

from tommyexp import ifsc

print(ifsc("SBIN0001234"))

Output

True

Example

from tommyexp import phone, gmail, ifsc

print(phone("9876543210"))
print(gmail("test@gmail.com"))
print(ifsc("SBIN0001234"))

Output

True
True
True

Validation Rules

Indian Phone Numbers

Rules:

  • Must contain exactly 10 digits
  • Must start with:
    • 6
    • 7
    • 8
    • 9

Example:

9876543210

Gmail Validation

Supported format:

sample@gmail.com

SBI IFSC Validation

Supported SBI IFSC format:

SBIN0001234

Rules:

  • Must start with SBIN
  • Followed by 0
  • Last 6 characters must be digits

Package Functions

Function Description
phone() Validate Indian mobile numbers
gmail() Validate Gmail addresses
ifsc() Validate SBI IFSC codes

Requirements

  • Python 3.7+

Future Enhancements

Planned features:

  • PAN Validation
  • Aadhaar Validation
  • GST Validation
  • Passport Validation
  • UPI Validation
  • Vehicle Number Validation

License

This project is licensed under the MIT License.


Author

Sandeep Nallamothu

Data Scientist | Generative AI Engineer | Python Developer

Interested in:

  • Generative AI
  • Machine Learning
  • NLP
  • RAG Applications
  • Python Libraries

Connect

LinkedIn: https://www.linkedin.com/in/sandeepnallamothu/

PyPI: https://pypi.org/project/tommyexp/1.0/

Instagram: https://www.instagram.com/sandeep_chowdary_nallamothu/?hl=en


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

tommyexp-1.1.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

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

tommyexp-1.1-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file tommyexp-1.1.tar.gz.

File metadata

  • Download URL: tommyexp-1.1.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for tommyexp-1.1.tar.gz
Algorithm Hash digest
SHA256 e137bdd44d15a0d527f532f46ddfab25317535997aeea6313f112b778c45f1aa
MD5 a5f627d8184d5523c6fd47c419c1313d
BLAKE2b-256 b0c3db58c804cb130c993d6ae9c1fe2ecbd15647499abdc59f90819ddfb17c77

See more details on using hashes here.

File details

Details for the file tommyexp-1.1-py3-none-any.whl.

File metadata

  • Download URL: tommyexp-1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for tommyexp-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5158c18c60965d9a9ce0b012ca738d9b0ece2028640748160e4a65f5d9b254cf
MD5 37fb77b59a9b8f3602f5b456df3ed7d3
BLAKE2b-256 c0da851b148fa9c3c5f4f7c2ace9c3ca307b1598f1b8a0befc6a123485eb87c5

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