Skip to main content

This Python function, email_validator, checks if an input string is a valid email address

Project description

Email Input Validator

This is a command-line interface (CLI) tool that validates email addresses. It checks if an email address matches the regular expression for a valid email address and then prints a message indicating whether the email address is valid or not.

Installation

You can install this tool from PyPI:

pip install email_in_validate

Usage

CLI Usage

You can use this tool in your terminal like this:

email_in_validate validate test@example.com

Replace test@example.com with the email address you want to validate.

Usage in Login Applications

You can also use this tool in your login applications to validate user email addresses during authentication. Here's a basic example of how you can do this in a Python-based web application:

from email_in_validate import validate

def login(email, password):
    if not validate(email):
        return 'Invalid email address'
    # Continue with your authentication logic...

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

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

email_in_validate-2.1.3.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

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

email_in_validate-2.1.3-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file email_in_validate-2.1.3.tar.gz.

File metadata

  • Download URL: email_in_validate-2.1.3.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.0

File hashes

Hashes for email_in_validate-2.1.3.tar.gz
Algorithm Hash digest
SHA256 ca64aa89f767c8bfa5c6b6ad49c377a63e785eab38d2f27d2c3dcc1b72b41a97
MD5 7cec2bcd330932dbcf1ed9caebf66c18
BLAKE2b-256 ae90673edbff392361a56a0c8028a268d145a008971e69f64f602aa62e950699

See more details on using hashes here.

File details

Details for the file email_in_validate-2.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for email_in_validate-2.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 eb8a87efa115b67fe855e6edd6eba131b4a33513937308572d15b7b905f90cb3
MD5 238195516187b89c369c7b8bf1e40508
BLAKE2b-256 660ad1f167e954c05e06170a1e3eaee514351c9dfbc924bfb85875c0fc83b92e

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