Skip to main content

A simple development server for AWS Lambda functions

Project description

lambda-dev-server

PyPI - Version PyPI - Python Version


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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lambda_dev_server-0.0.2.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

lambda_dev_server-0.0.2-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

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

Hashes for lambda_dev_server-0.0.2.tar.gz
Algorithm Hash digest
SHA256 15038dc28c42c3ebae0cdcbc5e97ae732cbf698ae317cb380b051a4e2da5c289
MD5 add86e8d525bfe4c559a9287ffa1745d
BLAKE2b-256 f72e76d4c0418b063bd659a13606024a86669d5548b4e1aca6a2ac2a5cca89ed

See more details on using hashes here.

File details

Details for the file lambda_dev_server-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for lambda_dev_server-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 77cc05ed4ccef6ca939762eeea0c35da6e10e719f0d02f3706ff6b6626b05027
MD5 49c72b2764391dbeaf1f04e9fd226fc6
BLAKE2b-256 c7f91e4381f48adc191a74b56c64287e0a944587e604a58dfa64435297157512

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