tropicbliss / stringvalidator

A fast and correct Python string validator library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

string_validator

A fast and correct Python string validator library. Also includes a cuid generator for the sake of posterity.

Validates:

  • Emails
  • IP addresses
  • IPv4 addresses
  • IPv6 addresses
  • URLs
  • Credit card numbers
  • Phone numbers
  • Non-control characters

Example

import string_validator

result = string_validator.validate_email("example@example.com")
assert result == True

About

A fast and correct Python string validator library

License:MIT License


Languages

Language:Rust 100.0%