Skip to content

intuit/email-decomposer

Repository files navigation

CircleCI License PyPI version Downloads

Email Decomposer

Decomposition of email address to first name, last name, and host.

How to use

Install

pip install email_decomposer

Import

from email_decomposer.EmailDecomposer import EmailDecomposer

Decompose emails list

EmailDecomposer().decompose(data=['johndue@intuit.com'], get_host=True).head()
first_name last_name host
johndoe@intuit.com John Doe intuit.com

Decompose a single email

EmailDecomposer().decompose(data='johndoe@intuit.com', get_host=True)

{'first_name': 'John', 'last_name': 'Doe', 'host': 'intuit.com'}

Contributing

See CONTRIBUTING.md.

Related content

https://medium.com/@elhanan.mishraky/cracking-the-code-on-email-addresses-7927128c92a0