Skip to main content

A lightweight and customizable validation library for Python CLI 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
  • Strict validation with clear and formatted error messages
  • Easily extendable for email, username, and more (coming soon!)
  • Two validation styles:
    • ✅ Boolean-style: is_valid_password
    • ⚠️ Exception-style: validate_password

📦 Installation

// cmd
pip install valinix

🛠️ Usage

1. Boolean-style Validation Returns True if the password is valid, otherwise False.

//python
from valinix import is_valid_password

if is_valid_password("MySecret123!"):
    print("Valid password")
else:
    print("Invalid password")

2. Exception-style Validation Raises a ValidationError with formatted reasons if validation fails.

// python
from valinix import validate_password, ValidationError

try:
    validate_password("short")
except ValidationError as e:
    print("Invalid Password:")
    print(e)

🔧 Custom Rules All validation functions accept the following optional parameters:

// python
validate_password(
    "MyPass123",
    min_length=10,
    max_length=100,
    require_upper=True,
    require_lower=True,
    require_digit=True,
    require_special=False
)

📌 Default Rules

Minimum length: 8
Maximum length: 50
Password must not contain spaces

Requires: One Uppercase letter
One Lowercase letter
One Digit
One Special Character


🧑‍💻 Author

CodeCaret


📄 License

MIT License. See LICENSE file for details.

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

valinix-1.0.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

valinix-1.0.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file valinix-1.0.0.tar.gz.

File metadata

  • Download URL: valinix-1.0.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for valinix-1.0.0.tar.gz
Algorithm Hash digest
SHA256 8c162dd83c72bb3816ff1b252ffca35e7122fa227f6fc290df075c71ec0e1142
MD5 8c58eae98714cdf5fbf997b90cb4bb46
BLAKE2b-256 1a3ef45c8cba1c8cb99296e5b90519f01f56e6bc6e95d2ea0d436d355012ddb5

See more details on using hashes here.

File details

Details for the file valinix-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: valinix-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for valinix-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 05444edb43e812b4b51748cf15b1dbda87091ff75f38bf402b241eea7e798a90
MD5 d41275cb6ce363455b4f2dcd52f6317e
BLAKE2b-256 b0a2178c2558b99ee90609475928fa89974fff6d4e2bf0850ad12fd755e41009

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