Skip to main content

python-input-validation

Business-level input validation and sanitization for Python applications.

Installation

pip install python-input-validation

Usage

from python_input_validation import (
    validate_email_format,
    validate_string_length,
    sanitize_email,
    sanitize_text_input
)

# Validate email
is_valid = validate_email_format("user@example.com")  # True

# Validate length
is_valid = validate_string_length("hello", min_length=3, max_length=10)  # True

# Sanitize email
clean_email = sanitize_email("  USER@EXAMPLE.COM  ")  # "user@example.com"

# Sanitize text
clean_text = sanitize_text_input("  hello world  ", max_length=10)  # "hello worl"

Features

  • ✅ Email validation
  • ✅ Length validation
  • ✅ Email sanitization
  • ✅ Text sanitization
  • ✅ Zero dependencies
  • ✅ Framework-agnostic

License

MIT

Metadata

Release files for python-input-validation 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-input-validation 0.1.0
File Size Uploaded Provenance Actions
python_input_validation-0.1.0.tar.gz 4.3 kB Without provenance Details for python_input_validation-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for python-input-validation 0.1.0
File Interpreter ABI Platform Actions
python_input_validation-0.1.0-py3-none-any.whl Python 3 none any Details for python_input_validation-0.1.0-py3-none-any.whl

Total release size: 7.5 kB

Release files / python_input_validation-0.1.0.tar.gz

Download URL python_input_validation-0.1.0.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
7a9190c173a6513e1a9f91ec11e9bbf106184fe0137afa2b6440a04be07aaa47
BLAKE2b-256 checksum
How to use checksums
411f6027045125409a9ea9ee2120c70db6b472645bc6fd4c664a5e0d6eae9113
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.11

Release files / python_input_validation-0.1.0-py3-none-any.whl

Download URL python_input_validation-0.1.0-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
24d17eb171544fe83807a3b39d3c5f060475882436b4b1219508c2b09166cded
BLAKE2b-256 checksum
How to use checksums
89dd7e628f7bb8bbe7e0b6c6722fe1b37ed6eb6f5eb60414b5bdb1ebc3b59eed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.11

Security for python-input-validation 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page