A tool to package Python code for AWS Lambda.
Project description
Lambda Packager
A CLI tool for packaging and deploying Python Lambda functions and Lambda layers.
Overview
Whenever I try to create new AWS Lambda functions in Python I always have difficulty packaging the code and dependencies. This tool is designed to make it easier to package and deploy Python Lambda functions and Lambda layers.
Installation
Setup a virtual environment:
python3 -m venv venv
Source the virtual environment:
source venv/bin/activate
Upgrade pip:
pip install --upgrade pip
Install the package:
pip install .
Install the package in editable mode:
pip install -e .
Note: This assumes you have defined a pyproject.toml file with the necessary dependencies.
Usage
lambda-packager --help
Features
- Package Lambda functions
- Package Lambda layers
- Deploy Lambda functions
- Deploy Lambda layers
Usage
Packaging Lambda Functions
lambda-packager package --function-name my-function --source-dir /path/to/source --output-dir /path/to/output
Packaging Lambda Layers
lambda-packager package --layer-name my-layer --source-dir /path/to/source --output-dir /path/to/output
References
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
File details
Details for the file lambda_kit-1.0.3.tar.gz
.
File metadata
- Download URL: lambda_kit-1.0.3.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 686c67e2385cdfb5b5649817990102d730b2880057183dc994bd9699c4de770a |
|
MD5 | d50a37c379d760eda243617b60fc02db |
|
BLAKE2b-256 | b3c028fb8200da07d9320f858dd7340abc44831904f291f9784b13d079ba659b |
File details
Details for the file lambda_kit-1.0.3-py3-none-any.whl
.
File metadata
- Download URL: lambda_kit-1.0.3-py3-none-any.whl
- Upload date:
- Size: 4.4 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 | e19e95a9931301e4490e2854f82905bbedfca1ec35f85093617fa10c6408f63c |
|
MD5 | 366c623296fed743beed4f90950ecf7a |
|
BLAKE2b-256 | 9a58ef3d788ed60867ddb524dd765cfa297c2162b109a3721c28e0a30e26756e |