Skip to main content

A Rust-based validation library with Python bindings, leveraging the power of pyo3 and validator crates to provide robust and efficient email validation.

Project description

Rusty Validator

This project provides a simple validation library written in Rust, with Python bindings using PyO3. The library uses the validator crate to validate email addresses, URLs, and IP addresses.

Features

  • Validate email addresses,
  • Validate URLs,
  • Validate IP addresses using Python.

Requirements

  • Python 3.8 or higher

Installation

You can install the package directly from PyPI:

pip install rusty-validator

Usage

Here's an example of how to use the validation functions in Python:

from rusty_validator import validate_email, validate_url, validate_ip

email = "example@example.com"
is_valid_email = validate_email(email)
print(f"Is valid email: {is_valid_email}")

url = "https://example.com"
is_valid_url = validate_url(url)
print(f"Is valid URL: {is_valid_url}")

ip = "127.0.0.1"
is_valid_ip = validate_ip(ip)
print(f"Is valid IP: {is_valid_ip}")

License

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgements

  • PyO3 for providing the Rust bindings for Python.
  • Validator for the validation functionality.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

rusty_validator-0.1.1rc3-cp312-cp312-manylinux_2_34_x86_64.whl (30.1 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.34+ x86-64

File details

Details for the file rusty_validator-0.1.1rc3-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for rusty_validator-0.1.1rc3-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 9f5b832eb0e1926c00a95a142a36beb0e354d2ffd133c9320074bb9bbae0898a
MD5 62ff5add96e3805f27993ddcd6d30190
BLAKE2b-256 ced440cb99061acc2d288ddc5a3b378806e4c99d6ec14da237b1c1e9c81d30e3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page