NormalizeEmail

The base module of NormalizeEmail.

It exposes a primary function, normalize_email, and a few utils.

Summary

Functions

Split an email to a username and domain parts

Checks whether the email domain allows . emails

Checks whether the email domain allows + emails

Normalizes an email. This is useful for storing, comparing, etc

Functions

get_email_parts(email)

Split an email to a username and domain parts.

Args:

  • email - the email to split, string

Returns a two string List[username, domain].

is_dot_email_provider(email)

Checks whether the email domain allows . emails.

Args:

  • email - the email to check, string

Returns a boolean.

is_plus_email_provider(email)

Checks whether the email domain allows + emails.

Args:

  • email - the email to check, string

Returns a boolean.

normalize_email(email)

Normalizes an email. This is useful for storing, comparing, etc.

Args:

  • email - the email to normalize, string

Returns a normalized email as a string.