Decomposition of email address to first name, last name, and host.
pip install email_decomposer
from email_decomposer.EmailDecomposer import EmailDecomposer
EmailDecomposer().decompose(data=['[email protected]'], get_host=True).head()
first_name | last_name | host | |
---|---|---|---|
[email protected] | John | Doe | intuit.com |
EmailDecomposer().decompose(data='[email protected]', 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