A powerful Python package for text formatting and validation. Includes utilities for text transformation (title case, snake case, reverse, etc.) and data validation (email, phone, password strength). Perfect for data processing, form validation, and text manipulation tasks.
Project description
TextFormatter Plus
A comprehensive Python package providing professional text formatting and validation utilities. Perfect for developers who need reliable text manipulation and data validation in their applications.
🎯 What is TextFormatter Plus?
TextFormatter Plus is a lightweight, easy-to-use Python package that offers:
- Text Formatting: Transform text in multiple ways (title case, snake case, reverse, capitalize, remove whitespace)
- Data Validation: Validate emails, phone numbers, and password strength
- Zero Dependencies: Works out of the box with no external dependencies
- Python 3.8+: Compatible with modern Python versions
🚀 Features
Text Formatting
- Title Case: Convert text to proper title case (e.g., "hello world" → "Hello World")
- Snake Case: Convert to snake_case format (e.g., "Hello World" → "hello_world")
- Reverse Text: Reverse any text string
- Capitalize Words: Capitalize first letter of each word
- Remove Whitespace: Remove all spaces from text
Validation
- Email Validation: Check if email addresses are in valid format
- Phone Validation: Validate 10-digit phone numbers
- Password Strength: Check if passwords meet strength requirements (8+ chars, uppercase, lowercase, digit)
📦 Installation
pip install textformatter-plus
💻 Quick Start
from textformatter_plus import TextFormatter, Validator
# Text Formatting
formatter = TextFormatter()
result = formatter.to_title_case("hello world")
print(result) # "Hello World"
result = formatter.to_snake_case("Hello World")
print(result) # "hello_world"
# Validation
validator = Validator()
is_valid = validator.is_email("user@example.com")
print(is_valid) # True
is_strong = validator.is_strong_password("MyPassword123")
print(is_strong) # True
📚 Complete Usage Examples
Text Formatting Examples
from textformatter_plus import TextFormatter
formatter = TextFormatter()
# Title case
formatter.to_title_case("hello world") # "Hello World"
# Snake case
formatter.to_snake_case("Hello World") # "hello_world"
# Reverse text
formatter.reverse_text("hello") # "olleh"
# Capitalize words
formatter.capitalize_words("hello world") # "Hello World"
# Remove whitespace
formatter.remove_whitespace("hello world") # "helloworld"
Validation Examples
from textformatter_plus import Validator
validator = Validator()
# Email validation
validator.is_email("user@example.com") # True
validator.is_email("invalid-email") # False
# Phone validation
validator.is_phone("1234567890") # True
validator.is_phone("123") # False
# Password strength
validator.is_strong_password("Password123") # True
validator.is_strong_password("weak") # False
🔧 Requirements
- Python 3.8 or higher
- No external dependencies required
📄 License
MIT License - Free to use in personal and commercial projects
👤 Author
Your Company Name
🔗 Links
- PyPI: https://pypi.org/project/textformatter-plus/
- GitHub: https://github.com/yourusername/textformatter-plus
- Issues: https://github.com/yourusername/textformatter-plus/issues
💡 Use Cases
- Form validation in web applications
- Data cleaning and preprocessing
- Text normalization in data pipelines
- User input validation
- API request validation
- Data transformation tasks
🎉 Why Choose TextFormatter Plus?
- ✅ Simple API: Easy to use, intuitive methods
- ✅ No Dependencies: Lightweight, no external packages needed
- ✅ Well Tested: Reliable and production-ready
- ✅ Active Maintenance: Regular updates and improvements
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
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 textformatter_plus-1.0.4.tar.gz.
File metadata
- Download URL: textformatter_plus-1.0.4.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e578dc501663d0cdd9f9561fe12ab0b78a542054bdb0c775c0af5cdda2d525b
|
|
| MD5 |
353b2bcb729a105f2246a36b2ea8914f
|
|
| BLAKE2b-256 |
86d4b484b4bae2fef5c500787c515929544ce59a06baff20f92500565f7793ec
|
File details
Details for the file textformatter_plus-1.0.4-py3-none-any.whl.
File metadata
- Download URL: textformatter_plus-1.0.4-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4702e1185f0a00880b308c4699f8c961fc722e2ae616f192d79b11eaa271f86e
|
|
| MD5 |
eebf8379b01f772b4e74f951631d3b46
|
|
| BLAKE2b-256 |
281f7587d8b5a5a0e7c4fe51c8c624f8c5364c92d728091ca0983e08ceebcdd5
|