Skip to main content

Easily validate emails

Project description

Basic Email Validator (beval)

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

Installation

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('is.this-an@email.com')

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.5.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

bemval-0.0.5-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file bemval-0.0.5.tar.gz.

File metadata

  • Download URL: bemval-0.0.5.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/3.6.7

File hashes

Hashes for bemval-0.0.5.tar.gz
Algorithm Hash digest
SHA256 4dbffde09ffe9bb712b239c734e58ad048d5ee35cdc688376180710f59342fc9
MD5 df52f72d10e79979e7edac4fbf607b29
BLAKE2b-256 1b2f801cf543774aaa31ddd13679073e00f8e25611add54511ee9ff3240b807a

See more details on using hashes here.

File details

Details for the file bemval-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: bemval-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 2.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/3.6.7

File hashes

Hashes for bemval-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 8a81374cd47b31bd0fc7441825b38ced5f76e8b948c18571c5ef80daafb72999
MD5 8ec8fbeb1aa21547e6024cf624426957
BLAKE2b-256 0348fb2547b3c05e96d3504469de1b779d07f032d49d7b124b276a24059bf180

See more details on using hashes here.

Supported by

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