Decomposition of email address to first name, last name, and host.
pip install email_decomposer
from email_decomposer.EmailDecomposer import EmailDecomposer
EmailDecomposer().decompose(data=['johndue@intuit.com'], get_host=True).head()
first_name | last_name | host | |
---|---|---|---|
johndoe@intuit.com | John | Doe | intuit.com |
EmailDecomposer().decompose(data='johndoe@intuit.com', get_host=True)
{'first_name': 'John', 'last_name': 'Doe', 'host': 'intuit.com'}
See CONTRIBUTING.md.
https://medium.com/@elhanan.mishraky/cracking-the-code-on-email-addresses-7927128c92a0