Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 991 Bytes

README.md

File metadata and controls

34 lines (24 loc) · 991 Bytes

nibbler-python

Better email parser for Python

Build Status Downloads Version

nibbler

Installation

# Production: install from PyPI
$ pip install nibbler-python

# Development: if you want to contribute to this project, clone it, install it from source
$ make install

Usage

Please see the test/test_parser.py for more test cases

>>> from nibbler.parser import parse_email

# valid email
>>> parse_email('"much.more unusual"@example.com')
(True, '"much.more unusual"@example.com')

# invalid email
>>> parse_email('A@b@[email protected]')
(False, 'A@b')

Testing

$ make test