Skip to main content

AWS SES Email Parser

Project description

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

Downloads Supported Versions Contributors

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

Read the Docs

Cloning the repository

git clone -c fetch.fsck.badTimezone=ignore https://github.com/suryavaddiraju/sesparser.git

SURYA VADDIRAJU Python Software Foundation

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sesparser-1.9.3.6.tar.gz (992.9 kB view details)

Uploaded Source

Built Distribution

sesparser-1.9.3.6-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

Details for the file sesparser-1.9.3.6.tar.gz.

File metadata

  • Download URL: sesparser-1.9.3.6.tar.gz
  • Upload date:
  • Size: 992.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for sesparser-1.9.3.6.tar.gz
Algorithm Hash digest
SHA256 1a068ec6684d16c9657a52e887d06dd13986692ce39166696bdf9a8c716888d4
MD5 167bc1d4f14a9f89a3c3798510e90da6
BLAKE2b-256 0810cc9bedc0534eecc0903f57cf34f617495b88d217829c4772a4dc70a030dd

See more details on using hashes here.

File details

Details for the file sesparser-1.9.3.6-py3-none-any.whl.

File metadata

  • Download URL: sesparser-1.9.3.6-py3-none-any.whl
  • Upload date:
  • Size: 15.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for sesparser-1.9.3.6-py3-none-any.whl
Algorithm Hash digest
SHA256 5750823bb455154886f8a36b1281ebefa6a7f60a42d9571d14d0648f01c4020c
MD5 2654021c40badaba50613eaeb6314ac3
BLAKE2b-256 2ce5587c57b9283c8fa67705787e676ca06c87dcb1fa5afdbbcafa5215f6e7a0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page