Skip to main content

A collection of useful decorators for making AWS Lambda handlers

Project description

lambda-handlers

Version Build Status Maintainability Test Coverage Requirements Status semantic-release

An opinionated Python package that facilitates specifying AWS Lambda handlers including input validation, error handling and response formatting.

Dependencies

This project uses pipenv to manage its dependencies and Python environment. You can install it by:

pip install --user pipenv

We recommend using a Python virtual environment for each separate project you do. For that, we suggest using pyenv.

Installation

For production, after you clone this repository, you can install this project plus dependencies with:

cd <clone_dest>
make install

Development

For development you should also install the development dependencies, so run instead:

cd <clone_dest>
make install-dev

This will install all dependencies and this project in development mode.

Testing

We use tox to run the code checkers. Run it with:

tox

You can also run the tasks separately with make:

make test

will run the unit tests,

make lint

will run a linter,

make mypy

will run the static type checker, and

make isort-check

will run the import order checker.

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

lambda-handlers-1.0.4.tar.gz (17.0 kB view hashes)

Uploaded Source

Built Distribution

lambda_handlers-1.0.4-py3-none-any.whl (23.4 kB view hashes)

Uploaded Python 3

Supported by

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