A simple development server for AWS Lambda functions
Project description
lambda-dev-server
A lightweight development server for AWS Lambda, lambda-dev-server
emulates the Lambda environment locally by creating events and contexts for any app handler. It processes requests, generates Lambda events, and returns parsed responses—ideal for development and debugging, with hot-reloading for rapid iteration. Not intended for production use. This has been tested with lambdas that use aws-lambda-powertools
as well with lambdas that return in the shape of {"statusCode": 200, "body": "Hello World"}
.
Table of Contents
Installation
To install lambda-dev-server
, use pip:
pip install lambda-dev-server
Usage
# Given a Lambda handler named handler in app.py
lambda-dev-server app.handler
Debbuging
{
"version": "0.2.0",
"configurations": [
{
"name": "Python Debugger: Module",
"type": "debugpy",
"request": "launch",
"module": "lambda_dev_server",
"args": ["app.handler"]
}
]
}
License
lambda-dev-server
is distributed under the terms of the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file lambda_dev_server-0.0.2.tar.gz
.
File metadata
- Download URL: lambda_dev_server-0.0.2.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15038dc28c42c3ebae0cdcbc5e97ae732cbf698ae317cb380b051a4e2da5c289 |
|
MD5 | add86e8d525bfe4c559a9287ffa1745d |
|
BLAKE2b-256 | f72e76d4c0418b063bd659a13606024a86669d5548b4e1aca6a2ac2a5cca89ed |
File details
Details for the file lambda_dev_server-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: lambda_dev_server-0.0.2-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77cc05ed4ccef6ca939762eeea0c35da6e10e719f0d02f3706ff6b6626b05027 |
|
MD5 | 49c72b2764391dbeaf1f04e9fd226fc6 |
|
BLAKE2b-256 | c7f91e4381f48adc191a74b56c64287e0a944587e604a58dfa64435297157512 |