Skip to main content

Local AWS Lambda is a Python package that allows you to simulate AWS Lambda functions in your local development environment. This helps you test and debug your serverless applications without deploying them to AWS.

Project description

🚀 Local AWS Lambda

Local AWS Lambda is a Python package that allows you to simulate AWS Lambda functions in your local development environment. This helps you test and debug your serverless applications without deploying them to AWS.


📦 Installation

pip install local-aws-lambda

⚡ Usage

✅ Basic Example

from local_lambda import LocalLambda

def handler(event, context):
    return {"message": "Hello from Local AWS Lambda!", "event": event}

lambda_runtime = LocalLambda(handler)
event = {"key": "value"}
print(lambda_runtime.invoke(event))

🛠️ Configuration

You can customize the Lambda environment:

lambda_runtime = LocalLambda(handler, timeout=5, memory=256)
  • timeout: Max execution time (in seconds)
  • memory: Simulated memory allocation (in MB)

🧪 Contributing

Contributions are welcome! 🚀

  1. Fork the repository
  2. Create a new branch (git checkout -b feature-xyz)
  3. Commit your changes (git commit -m 'Add new feature')
  4. Push to the branch (git push origin feature-xyz)
  5. Open a Pull Request

🦢 Running Tests

pytest tests/

📜 License

This project is licensed under the MIT License. See the LICENSE file for details.


🌐 Links

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

local_aws_lambda-0.1.4.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

local_aws_lambda-0.1.4-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file local_aws_lambda-0.1.4.tar.gz.

File metadata

  • Download URL: local_aws_lambda-0.1.4.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.1

File hashes

Hashes for local_aws_lambda-0.1.4.tar.gz
Algorithm Hash digest
SHA256 05ace5b59e02c4878f3c19e29126b889b360ef27b9b157e070e8cbba54a2f2e6
MD5 e1fac102a7e7dad5e54611d970b56eb5
BLAKE2b-256 e345e51523ef6f0927d2ef4bb1faac755545557488984b5f1e4ece004cc713a1

See more details on using hashes here.

File details

Details for the file local_aws_lambda-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for local_aws_lambda-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e875315d937ba4164f731d9c2f3cefbd6bf839b3970b09c7af55c0171c2a702c
MD5 19709a948486c7eb8c790871e82a811e
BLAKE2b-256 60925e26c30be25c2ab444c3e0f4158fe9efa737a3ec1b323af97079e5ea5c44

See more details on using hashes here.

Supported by

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