sesparser
sesparser is a simple, yet elegant, Email parsing library received through AWS SES.
>>> import sesparser
>>> s = sesparser.online('s3_ses_event')
>>> s.recipient
someone@example.com
>>> s = sesparser.online('s3_ses_event',dynamodb=True,table_name="core-mail-data-1")
{'UnprocessedItems': {}, 'ConsumedCapacity': [{'TableName': 'core-mail-data-1', 'CapacityUnits': 20.0}], 'ResponseMetadata': {'RequestId': 'H7210I9JBDH33CKJH1JO16QSEFVV4KQNSO5AEMVJF66Q9ASUAAJG', 'HTTPStatusCode': 200, 'HTTPHeaders': {'server': 'Server', 'date': 'Thu, 09 Nov 2023 03:20:55 GMT', 'content-type': 'application/x-amz-json-1.0', 'content-length': '98', 'connection': 'keep-alive', 'x-amzn-requestid': 'H7210I9JBDH33CKJH1JO16QSEFVV4KQNSO5AEMVJF66Q9ASUAAJG', 'x-amz-crc32': '2598397897'}, 'RetryAttempts': 0}}
>>> s.archive.s3.key
'<DS0PR02MB924561B21196B9EE08B3B93BC2AFA@DS0PR02MB9245.namprd02.prod.outlook.com>'
>>> s.timestamp
20231109233614
>>> print(s)
{"all_email_keys":"all_email_key_values"}
sesparser allows you to work on lambda extremely easily. There’s no need to manually add query strings to your function, or to decode your eml data — but nowadays, just use the SNS-Event method!
sesparser is one of the most downloaded Python packages today, pulling in around 30 downloads / week— according to GitHub
Installing sesparser and Supported Versions
sesparser is available on PyPI:
$ python -m pip install sesparser
sesparser officially supports Python 3.7+.
Supported Features & Best–Practices
sesparser is ready for the demands of building robust and reliable email parsing applications, for the needs of today.
- Handling inline attachments
- File placeholders
- cloud saving
- Data decoding
- Advanced multipart handler
- Different domains handler
- Handle offline too
- Extra layer detection of filenames
- Added support for AWS Lambda Layer
- Advanced Security Details
- Spam recognition
- DKIM,DMARC,SPF and other standard compliance
- Segregating on user recipient mail id
- Bulk processing
API Reference and User Guide available on Read the Docs
Cloning the repository
git clone -c fetch.fsck.badTimezone=ignore https://github.com/suryavaddiraju/sesparser.git
Metadata
Release files for sesparser 1.9.4.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sesparser-1.9.4.5.tar.gz | 994.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sesparser-1.9.4.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.0 MB
Release files / sesparser-1.9.4.5.tar.gz
| Download URL | sesparser-1.9.4.5.tar.gz |
|---|---|
| Size | 994.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0efc917db1a961b07907e9a605532170a7d4605c549f00058e27ad364a23da5d
|
|
BLAKE2b-256 checksum How to use checksums |
54416abd32c979a8fd372a1f35968d0d47815cdb9e51d212ef7363537a28b025
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Release files / sesparser-1.9.4.5-py3-none-any.whl
| Download URL | sesparser-1.9.4.5-py3-none-any.whl |
|---|---|
| Size | 15.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e0c1d92b0e458b671eb92c5bfdeea03a08bbbee067863bb1fc563351550ffd01
|
|
BLAKE2b-256 checksum How to use checksums |
00416c70b1864a6305eb5f8f58e796f0f87f329dd1182484f28375fc81ca14b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|