Skip to main content


Project description

Python-AWS-Dataclasses [WIP]

Codecov GitHub PyPI PyPI - Python Version

Python-AWS-Dataclasses provides data-classes for AWS lambda events and other AWS data. The dataclasses are type-annotated, as to allow for full IDE (code completion / IntelliSense) support.



# using pip
pip install python-aws-dataclasses
# or using pipenv
pipenv install python-aws-dataclasses.git


Assuming you have a dict of some AWS event (e.g. events passed into your lambda_handler) use the from_event()-method and access the objects via the dot-notation.

def lambda_handler(event, context):
  # Example 1: Lambda asynchronously invoked via SNS
  sns_event = SnsEvent.from_event(event)

  # Example 2: Lambda asynchronously invoked via S3-Event
  s3_event = S3Event.from_event(event)


Everyone is free to contribute and submit Pull-Requests.


Test using tox


Test using

python test

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

python-aws-dataclasses-0.4.5.tar.gz (31.1 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page