Metadata-Version: 2.4
Name: email_decomposer
Version: 0.0.5
Summary: Fuzzy decomposition of email prefix to first/last name
License: Apache-2.0
License-File: LICENSE
Author: Elhanan Mishraky
Author-email: elhanan_mishraky@intuit.com
Requires-Python: >=3.10
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Dist: nltk (>=3.9.3)
Requires-Dist: numpy (>=1.19.4)
Requires-Dist: pandas (>=1.1.5)
Project-URL: Homepage, https://github.com/intuit/email-decomposer
Project-URL: Repository, https://github.com/intuit/email-decomposer
Description-Content-Type: text/markdown


<!--[![codecov](https://codecov.io/gh/intuit/email-decomposer/branch/main/graph/badge.svg)](https://codecov.io/gh/intuit/email-decomposer)-->
[![CircleCI](https://circleci.com/gh/intuit/email-decomposer.svg?style=shield)](https://circleci.com/gh/intuit/email-decomposer)
[![License](https://img.shields.io/github/license/intuit/email-decomposer)](https://raw.githubusercontent.com/intuit/email-decomposer/master/LICENSE)
[![PyPI version](https://img.shields.io/pypi/v/email-decomposer)](https://pypi.org/project/email-decomposer)
[![Downloads](https://pepy.tech/badge/email-decomposer)](https://pepy.tech/project/email-decomposer)

# 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](https://github.com/intuit/email-decomposer/blob/main/CONTRIBUTING.md).

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

