Skip to main content

lambdev

A simple interface wrapped around a boto3 lambda client, lambdev simplifies testing, deploying, and versioning AWS lambda functions from your local development environment.

Installation

pip install lambdev

Configuration

AWS credentials

Please refer to the boto3 documentation on configuring your aws credentials. Best option when working with lambdev is to store your credentials (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY) and region (AWS_DEFAULT_REGION) as environment variables.

create .lambdevignore.txt

create a file called .lambdevignore.txt where you can list the names of files and directories that are in your project folder that you would like to exclude from your lambda function deployment package.

for example:

env
test.py
build.sh
function_name.txt

All hidden files (names that start with .) are ignored by default (ie .gitignore) and do not need to be added to the ignore file.

Usage

simply run the lambdev functions from the root directory of your AWS lambda function project folder.

Available functions:
  1. lambdev.create()
    • creates a new lambda function by uploading a deployment package from the non-ignored files in the working directory. Saves new function ARN in $WORKINGDIR/function_name.txt.
  2. lambdev.test()
    • uploads non-ignored code in working dir to lambda function $latest channel, invokes it, and returns log.
  3. lambdev.publish()
    • publishes code in $latest and updates input alias to point to new version.

Examples

Example files can be found here

Metadata

Release files for lambdev 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lambdev 0.1.2
File Size Uploaded
lambdev-0.1.2.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lambdev 0.1.2
File Interpreter ABI Platform
lambdev-0.1.2-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 9.3 kB

Release files / lambdev-0.1.2.tar.gz

Download URL lambdev-0.1.2.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9bd2964a653b39b3c980aa43f7f4711f03a3fd4f3cacc9fb8dbe4b9e276a4c2f
BLAKE2b-256 checksum
How to use checksums
70ed3085e8c41e7a671a3f13de028e8264c293c5bfa6f013bf98155456fad69e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.3 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.3

Release files / lambdev-0.1.2-py2.py3-none-any.whl

Download URL lambdev-0.1.2-py2.py3-none-any.whl
Size 5.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
dcbf2ab17750d8f454e138d93af1eff2048de51ebb7a125a8c3238b4b5169662
BLAKE2b-256 checksum
How to use checksums
073a82254ea599fc5b0b3d62b377e878d25f33c090b50169bee16829734ad2c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.3 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.3

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

3 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page