Skip to main content

A collection of useful decorators for making AWS Lambda handlers

Project description

# lambda-handlers

[![Build Status](https://travis-ci.org/enter-at/lambda-handlers.svg?branch=master)](https://travis-ci.org/enter-at/lambda-handlers) [![Maintainability](https://api.codeclimate.com/v1/badges/a39e55b85bfcc31204b9/maintainability)](https://codeclimate.com/github/enter-at/lambda-handlers/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/a39e55b85bfcc31204b9/test_coverage)](https://codeclimate.com/github/enter-at/lambda-handlers/test_coverage) [![Requirements Status](https://requires.io/github/enter-at/lambda-handlers/requirements.svg?branch=master)](https://requires.io/github/enter-at/lambda-handlers/requirements/?branch=master) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic–release-e10079.svg)](https://github.com/semantic-release/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](https://pipenv.readthedocs.io) to manage its dependencies and Python environment. You can install it by:

`bash pip install --user pipenv `

We recommend using a Python virtual environment for each separate project you do. For that, we suggest using [pyenv](https://github.com/pyenv/pyenv-installer).

## Installation

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

`bash cd <clone_dest> make install `

## Development

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

`bash cd <clone_dest> make install-dev `

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

### Testing

We use [tox](https://tox.readthedocs.io/en/latest/) to run the code checkers. Run it with:

`bash tox `

You can also run the tasks separately with make:

`bash make test `

will run the unit tests,

`bash make lint `

will run a linter,

`bash make mypy `

will run the static type checker, and

`bash make isort-check `

will run the import order checker.

## [1.0.1](https://github.com/enter-at/lambda-handlers/compare/v1.0.0…v1.0.1) (2019-07-02)

### Bug Fixes

# 1.0.0 (2019-07-01)

### Bug Fixes

### Features

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.1.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

lambda_handlers-1.0.1-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file lambda_handlers-1.0.1.tar.gz.

File metadata

  • Download URL: lambda_handlers-1.0.1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.1

File hashes

Hashes for lambda_handlers-1.0.1.tar.gz
Algorithm Hash digest
SHA256 5cdfe15c154332bd7ad0dbca4a1d18f767360a19e04531ec5495bf15442ab887
MD5 bf73f8f7938b9ef4e60ab1dfbffaa880
BLAKE2b-256 0cbd2c6f6e8f29be423c6d68ab95c4d6678e4a9421f308296fb43ef096375a32

See more details on using hashes here.

File details

Details for the file lambda_handlers-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: lambda_handlers-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.1

File hashes

Hashes for lambda_handlers-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bc4cc27cbf106c3792fde372ffa1482ac3d5d52df3b6396673af6dd030db0d90
MD5 e14cd26e171cee6ded1bcc033ab79005
BLAKE2b-256 b8eff8f73bdf1ff79fe77d6b981b798ca67e68dd250848fc3f93ed5a3fa51775

See more details on using hashes here.

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