Skip to content

lambda-extensions/python-extension-framework

Repository files navigation

Python Extension Framework

This is a framework for building AWS Lambda Extensions.

Quickstart

$ pip install lef

To get started you can use the default Extension class, or extend it.

Example:

import lef

def handler(event):
    print(event)

extension = lef.Extension()
extension.register([lef.EventType.INVOKE], handler)

Development

Install Dependencies

$ poetry install --dev

Bump Version

You can use the bin/bump script to bump the version. This is a wrapper for bumpversion.

$ bin/bump <VERSION LEVEL>