Skip to main content

Run AWS Lambda functions locally

Project description

run_lambda is a Python package for running Python AWS Lambda functions locally. It offers a Python module for automated testing of Lambda functions, as well as a command-line interface for ad-hoc local invocations.

Doesn’t something like this already exist?

Not exactly. There are other programs for locally running Python Lambda functions. However, all of the other utilities (that I know of) only provide a command-line tool. A command-line tool is great for quick manual invocations. However, if you want to create robust, automated tests for your Lambda functions, a Python module that you can import and call is more appropriate. run_lambda is unique because it offers both a simple command-line tool for manual invocations, and an importable Python module for automated tests.

Features

run_lambda supports

  • An interface for examining the result (return value, exception, timeout) of a function call

  • A full implementation of AWS Context objects

  • Function calls with or without a timeout

  • Resource usage profiling (memory and run-time)

  • Convenient mocking of objects and services inside Lambda functions

Installation

The easiest way to install is via pip:

$ pip install run_lambda

You can also download the source from Github.

Documentation

Documentation for the package can be found on Read the Docs.

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

run_lambda-0.1.7.2.tar.gz (10.2 kB view details)

Uploaded Source

Built Distributions

run_lambda-0.1.7.2-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

run_lambda-0.1.7.2-py2-none-any.whl (14.8 kB view details)

Uploaded Python 2

File details

Details for the file run_lambda-0.1.7.2.tar.gz.

File metadata

File hashes

Hashes for run_lambda-0.1.7.2.tar.gz
Algorithm Hash digest
SHA256 6273e874ec86331e800ada384f95dd1aa66668ade657bdc40f9772497fd46bff
MD5 ddda690ea98f6857e6f8b8805169348e
BLAKE2b-256 b8bf21aca4c9cd118109809f6c67dd3bec2db461cca6ab46d4bb76d6c2856eec

See more details on using hashes here.

File details

Details for the file run_lambda-0.1.7.2-py3-none-any.whl.

File metadata

File hashes

Hashes for run_lambda-0.1.7.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cc0f9b4907b11239120f606cd9ce8b0fcf5d18686259543eb0c07c9ca3eb6d0c
MD5 52444fc02a9ba0ba7ed65515bcb6e4c1
BLAKE2b-256 3534ba397736b384ba2154396ee3b5f957967b43d8bdcb6ee8290a20c8fcd4d5

See more details on using hashes here.

File details

Details for the file run_lambda-0.1.7.2-py2-none-any.whl.

File metadata

File hashes

Hashes for run_lambda-0.1.7.2-py2-none-any.whl
Algorithm Hash digest
SHA256 19475dae1c859b2161363ff610373d542ecb506cc605e1e4e890c1537868e6e1
MD5 5d8398d8b783d5043fe03d7b5686514b
BLAKE2b-256 44cb513ec231a3799fb9d67a8761c299aa016d1d8c661805874d45365df7dddb

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