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 hashes)

Uploaded Source

Built Distribution

email_in_validate-2.1.3-py3-none-any.whl (2.9 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