Validate single values like emails, URLs and IBANs in Python without a schema
open sourceMITfree
validators is a Python library for checking a single value, an email address, a URL or a card number, without defining a form or a schema first: validators.email('someone@example.com') returns True, or a failure object. It has validators for domains, hostnames, IP and MAC addresses, URLs, UUIDs, slugs, card numbers, IBANs and other finance identifiers, hashes, encodings, cron expressions, country codes, crypto addresses and country-specific IDs, plus length and between checks.
Problems it solves
- check that a string is a valid email address in Python
- validate a URL or IP address in Python without a schema library
- check an IBAN or credit card number in Python
Features
- email, URL, domain and hostname validators
- IP address, MAC address and UUID validators
- card number, IBAN and other finance validators
- hash, encoding, cron and slug validators
- crypto address and country-specific ID validators
- length and between range checks