Skip to main content

High-performance Rust implementation of validators - validate emails, URLs, IPs, and more

Project description

validators-rs

High-performance Rust implementation of validators - validate emails, URLs, IPs, and more.

Overview

validators-rs is a Rust-powered Python library that provides fast validation for common data types including emails, URLs, IP addresses, and more.

Installation

pip install validators-rs

Features

  • 🚀 High Performance: Built with Rust for maximum speed
  • Comprehensive Validation: Email, URL, IP, domain, and more
  • 🔄 Compatible: Drop-in replacement for the validators library
  • 🐍 Python 3.8+: Supports Python 3.8 through 3.14
  • 🌍 Cross-Platform: Pre-built wheels for Linux, macOS, and Windows

Quick Start

from validators_rs import email, url, ipv4, domain

# Validate email addresses
print(email("user@example.com"))  # True
print(email("invalid.email"))     # False

# Validate URLs
print(url("https://example.com"))  # True
print(url("not a url"))           # False

# Validate IP addresses
print(ipv4("192.168.1.1"))  # True
print(ipv4("999.999.999.999"))  # False

# Validate domain names
print(domain("example.com"))  # True
print(domain("invalid..domain"))  # False

Available Validators

  • email(): Validate email addresses
  • url(): Validate URLs
  • ipv4(): Validate IPv4 addresses
  • ipv6(): Validate IPv6 addresses
  • domain(): Validate domain names
  • mac_address(): Validate MAC addresses
  • uuid(): Validate UUIDs
  • And more!

Performance

validators-rs provides significant performance improvements over pure Python implementations, making it ideal for high-throughput validation scenarios.

License

MIT License

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

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 Distributions

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

validators_rs-0.1.1-cp314-cp314-win_amd64.whl (719.7 kB view details)

Uploaded CPython 3.14Windows x86-64

validators_rs-0.1.1-cp313-cp313-win_amd64.whl (719.7 kB view details)

Uploaded CPython 3.13Windows x86-64

validators_rs-0.1.1-cp312-cp312-win_amd64.whl (720.3 kB view details)

Uploaded CPython 3.12Windows x86-64

validators_rs-0.1.1-cp312-cp312-manylinux_2_34_x86_64.whl (955.5 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

validators_rs-0.1.1-cp312-cp312-macosx_11_0_arm64.whl (801.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

validators_rs-0.1.1-cp311-cp311-win_amd64.whl (720.0 kB view details)

Uploaded CPython 3.11Windows x86-64

validators_rs-0.1.1-cp311-cp311-manylinux_2_34_x86_64.whl (955.3 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

validators_rs-0.1.1-cp311-cp311-macosx_11_0_arm64.whl (801.7 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

validators_rs-0.1.1-cp310-cp310-win_amd64.whl (720.1 kB view details)

Uploaded CPython 3.10Windows x86-64

validators_rs-0.1.1-cp310-cp310-manylinux_2_34_x86_64.whl (955.3 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

validators_rs-0.1.1-cp310-cp310-macosx_11_0_arm64.whl (801.8 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

validators_rs-0.1.1-cp39-cp39-win_amd64.whl (724.6 kB view details)

Uploaded CPython 3.9Windows x86-64

validators_rs-0.1.1-cp39-cp39-manylinux_2_34_x86_64.whl (955.3 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.34+ x86-64

validators_rs-0.1.1-cp39-cp39-macosx_11_0_arm64.whl (801.9 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

validators_rs-0.1.1-cp38-cp38-manylinux_2_34_x86_64.whl (955.1 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.34+ x86-64

validators_rs-0.1.1-cp38-cp38-macosx_11_0_arm64.whl (801.6 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file validators_rs-0.1.1-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for validators_rs-0.1.1-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 8f478f452e164154d71d8c3d0644ac8e01b9fe25c62a1a7a91e86327b5caaf12
MD5 3fcb121063950f72220ea0b0054ca874
BLAKE2b-256 1e0ade210b42d11c455358c2110b573357a0ec6767be9536651bc61486cf399c

See more details on using hashes here.

File details

Details for the file validators_rs-0.1.1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for validators_rs-0.1.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 949e1895eab3be9793404700a2c89c65d0b26181e0792255d6171efeb11917dc
MD5 9da5bf30257dc11dc227bad2185f8253
BLAKE2b-256 a74bfb1467c6d4835926d1db910ee4681b936eb5dea27a431716ad991a7f82fa

See more details on using hashes here.

File details

Details for the file validators_rs-0.1.1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for validators_rs-0.1.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 cc4b35cab2768aee5284812fb75ddd19528f9b1e9c464469a898890f21a49ae0
MD5 684eea6e9703dab50a4adb52c2128e55
BLAKE2b-256 36f723f63d6b62079b406be9f3f7bcc8c178b111973488a1ea5e533a773d1dbb

See more details on using hashes here.

File details

Details for the file validators_rs-0.1.1-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for validators_rs-0.1.1-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 0c8f5ab562ada200b178de0e44f55135691c22d639eeb699b8bf53c297c08f10
MD5 892a314fba141e620e28be28f54a3141
BLAKE2b-256 84c8decca98b0fcae2e624259e3dab6195efafcf40abdb3ff6f80024069b1746

See more details on using hashes here.

File details

Details for the file validators_rs-0.1.1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for validators_rs-0.1.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 57e29984f0c4d5d31d0f3926f920225db603e193d40c4d78c27ab1401ca6515f
MD5 5e57b1106c061cc1adcf7d7cf9b82def
BLAKE2b-256 8130e64a2214d5ee675060a6f9c4a992cc9a1558cea379594f426c1d69490541

See more details on using hashes here.

File details

Details for the file validators_rs-0.1.1-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for validators_rs-0.1.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5ea945f9b9760ad73efd1cd56380ebcfeca73f3dca57f8c6523ae0b9d6a9ce15
MD5 7dcddd4ea3234b586357d55eb50e0871
BLAKE2b-256 0456b36583843241aef93de6ffe1fd31283620e736cef1872f192ccd88253a28

See more details on using hashes here.

File details

Details for the file validators_rs-0.1.1-cp311-cp311-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for validators_rs-0.1.1-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 ad7b46d6e7642617c04477f0c4f9bbec79677011c4c915e9800e24e9745ed41d
MD5 8b4a700c0bad6ff6a356ce696c70fcf8
BLAKE2b-256 7514acf5ce160b059962c56d4ff4b87e3abfdff32504e33832af11917115be96

See more details on using hashes here.

File details

Details for the file validators_rs-0.1.1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for validators_rs-0.1.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6bd89e29ed51ea32f43944dc137fa357c065220848b9f973d89c3b414c876419
MD5 8cdcbc8ba9c0cdbd7f03e24f204be6f8
BLAKE2b-256 93a0f6be3f946bee829bee864f507718411a6fcd0a9e51c2236db173a32bae54

See more details on using hashes here.

File details

Details for the file validators_rs-0.1.1-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for validators_rs-0.1.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 fa825a382b4273546291c5baf3c8a4dcb1b58cf7df71ede89804f9291c6200e5
MD5 357fcb8256db4ea56707bcdb73aa492f
BLAKE2b-256 1bff4dc8f4995c19cb027e663639e288e67969a6a419ac4c118eb6a3f2611da8

See more details on using hashes here.

File details

Details for the file validators_rs-0.1.1-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for validators_rs-0.1.1-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 9fb15a8f95121e767dd978cd4dc4a020ac308e1d4cf6b0fb3dd78e52639c6fc0
MD5 4fe6343a4631f38385b767a286e9f80d
BLAKE2b-256 81f1aafa30e6ba9605ab0c3f2329d1aa8fcc65d453b862e6fef89329c467fdbd

See more details on using hashes here.

File details

Details for the file validators_rs-0.1.1-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for validators_rs-0.1.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6ce61596f4567cc235fd73b8c7efa1609c28d42a593418c98af52f8a0fc55536
MD5 169471cceb710bad601cc81d5e997df3
BLAKE2b-256 2ba3e8e147ad77bc021a40c654e97d9acd630967e96abb6c122a0cce186cad40

See more details on using hashes here.

File details

Details for the file validators_rs-0.1.1-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for validators_rs-0.1.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 712727e9f5bbc725fd765d690c3b1b2630eefaec3f5453f357d19ee7a23ed98c
MD5 111eb5e2a903bea8462f43ab69e48709
BLAKE2b-256 487ad661aa17e62ef552276b2fc442b53be99b5cedc6d27b25eff14e4a506d22

See more details on using hashes here.

File details

Details for the file validators_rs-0.1.1-cp39-cp39-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for validators_rs-0.1.1-cp39-cp39-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 e39e09afa48d048f224e5312f513720e77a1a1b3b3bfc1b691b3fe5432abb109
MD5 11e76ad456c1138d277208b56233ffa8
BLAKE2b-256 aaa98fc04fb52123ca63b7a9040e4f07599299aaf01a063102e507328dd1724f

See more details on using hashes here.

File details

Details for the file validators_rs-0.1.1-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for validators_rs-0.1.1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0073f05f4dee74f1104749e2755256df8a939821229679c07de33f052326d5af
MD5 0a6881edd27941cc843c8a40ce99ae47
BLAKE2b-256 4e6655ba5697bda2c22155488a69753390fb34ec696d93b423d8f265f162c7ef

See more details on using hashes here.

File details

Details for the file validators_rs-0.1.1-cp38-cp38-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for validators_rs-0.1.1-cp38-cp38-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 9cefaf49462ae06069998a57ea669e4172d51c8776ea2114d26ec02cfc855910
MD5 e5166dbe281c140c40cb088c8e6570c9
BLAKE2b-256 75a9753de92aa2c1c496cc0f3cda77e5f6e6fd8ec1e4d603f440a63fb40a1c15

See more details on using hashes here.

File details

Details for the file validators_rs-0.1.1-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for validators_rs-0.1.1-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b4b36fc9c05a40872d16443b60cf6dc20f13e2944cbc9b9c6955b7a6ff7f1c07
MD5 775991c769526111b3ae20e6f68fd08a
BLAKE2b-256 d02537d97120eab6c4b5fef253983e9712cae344f93d1c36c96bb721bfd8f56a

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