A simple, customizable CLI-focused validation library for Python projects.
Project description
Valinix
valinix is a lightweight, customizable validation library designed to simplify user input validation in CLI-based Python projects.
🚀 Features
- Validate passwords with customizable rules
- Easily extendable for email, username, and more (coming soon!)
- Designed with flexibility and developer-friendliness in mind
- Offers both:
- Boolean-based validation (
is_valid_password) - Exception-based validation (
validate_password)
- Boolean-based validation (
📦 Installation
cmd
pip install valinix
🛠️ Usage
1. Boolean-style Validation
python
from valinix import is_valid_password
result = is_valid_password("MySecret123!") if result is True: print("Valid password") else: print("Issues:", result)
2. Exception-style Validation
python
from valinix import validate_password
try: validate_password("short") except ValueError as e: print("Password validation failed:", e)
🔧 Custom Rules
python
is_valid_password("myPass123", min_length=10, require_special=False)
📌 Default Rules
Minimum length: 8 Maximum length: 50
Requires:
Uppercase letter Lowercase letter Digit Special character
🧑💻 Author
CodeCaret
📄 License
MIT License. See LICENSE file for details.
Project details
Release history Release notifications | RSS feed
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 valinix-0.1.0.tar.gz.
File metadata
- Download URL: valinix-0.1.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d486a324fa447c21cb324f2f6ae47f78cbbed9ecaca1ad74076eb4c269a8daa
|
|
| MD5 |
211f278c3b045e71c54496f7fdb096ca
|
|
| BLAKE2b-256 |
e0ad89c886a02c67dd9bdab0653cee3e0a46c1a82e463389e5a40764de2461e2
|
File details
Details for the file valinix-0.1.0-py3-none-any.whl.
File metadata
- Download URL: valinix-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
44719899ef8ce324b9538cedfff2cad4395b344dde6cee41287e31811a64b448
|
|
| MD5 |
409d50ad88c5de531813586c642dbdba
|
|
| BLAKE2b-256 |
cbc57fe9b63054f7fd05a2524e18ef7ae5a81a3f56760f53e03f41f5626bb7bc
|