Skip to main content

Easily validate emails

Project description

Basic Email Validator (bemval)

This is a super simple and/or basic example of an email validator without using external libraries. Just python std functions


Run the following command in your terminal: pip3 install -U bemval

How to use

from bemval.validator import EmailValidator

validator = EmailValidator()
valid, errors = validator.validate('')

print('Is a valid email? -> %s' % ('YES' if valid else 'NO'))
if len(errors) > 0:
    print('Errors:\n- %s' % '\n- '.join(errors))

Project details

Download files

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

Source Distribution

bemval-0.0.6.tar.gz (2.1 kB view hashes)

Uploaded Source

Built Distribution

bemval-0.0.6-py3-none-any.whl (2.5 kB view hashes)

Uploaded Python 3

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