A Python package for validating forms.
Project description
Form Validator
A simple Python package for validating forms. It supports:
- ✅ Email validation
- ✅ Password strength check
- ✅ Mobile number validation
- ✅ Age validation (18+)
Installation
pip install form-validator
Usage
First, import the functions you need:
from form_validator import validate_email, validate_password, validate_mobile, validate_age
Examples
1. Email Validation
email = "example@gmail.com"
if validate_email(email):
print("✅ Valid Email Address")
else:
print("❌ Invalid Email Address")
2. Password Strength Check
password = "StrongPass123!"
if validate_password(password):
print("✅ Strong Password")
else:
print("❌ Weak Password. Try adding letters, numbers, and special characters.")
3. Mobile Number Validation
mobile = "9876543210"
if validate_mobile(mobile):
print("✅ Valid Mobile Number")
else:
print("❌ Invalid Mobile Number")
4. Age Validation (18+ Check)
age = 20
if validate_age(age):
print("✅ Age is 18 or above")
else:
print("❌ Must be at least 18 years old")
Why use Form Validator?
- 🚀 Lightweight and fast
- 🔥 No external heavy dependencies
- 📦 Easy to plug into any Python project
- 🛡️ Helps prevent invalid user inputs
License
This project is licensed under the MIT License.
Would you also like me to create a badge version like:
[](https://pypi.org/project/form-validator/)
to make your README even more professional? 🚀🎯
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
form_validator-1.4.0.tar.gz
(2.8 kB
view details)
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 form_validator-1.4.0.tar.gz.
File metadata
- Download URL: form_validator-1.4.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.9.2rc1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
25162a53c7938ae251c321632ff02c9eb52821281686e3cce6c4e8686a5281c7
|
|
| MD5 |
be801e088a79aaf529476d68ad14236a
|
|
| BLAKE2b-256 |
42af8ef5487ace7f96ec19c92bb84c7bd32368260c1c4d2cd04da455b87cf09e
|
File details
Details for the file form_validator-1.4.0-py3-none-any.whl.
File metadata
- Download URL: form_validator-1.4.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.9.2rc1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6cc6a9ad3ff6e65918991861c9934510f656cc2c20802a60416bd17df549db81
|
|
| MD5 |
999c3cb829db6036d5e7bc0842561eef
|
|
| BLAKE2b-256 |
d55f03147930274a642b3fe388d396b30d6470055993beb00d3c2ca4930b403b
|