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! 🚀
- Fork the repository
- Create a new branch (
git checkout -b feature-xyz) - Commit your changes (
git commit -m 'Add new feature') - Push to the branch (
git push origin feature-xyz) - 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
05ace5b59e02c4878f3c19e29126b889b360ef27b9b157e070e8cbba54a2f2e6
|
|
| MD5 |
e1fac102a7e7dad5e54611d970b56eb5
|
|
| BLAKE2b-256 |
e345e51523ef6f0927d2ef4bb1faac755545557488984b5f1e4ece004cc713a1
|
File details
Details for the file local_aws_lambda-0.1.4-py3-none-any.whl.
File metadata
- Download URL: local_aws_lambda-0.1.4-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e875315d937ba4164f731d9c2f3cefbd6bf839b3970b09c7af55c0171c2a702c
|
|
| MD5 |
19709a948486c7eb8c790871e82a811e
|
|
| BLAKE2b-256 |
60925e26c30be25c2ab444c3e0f4158fe9efa737a3ec1b323af97079e5ea5c44
|