Skip to main content

Deprecation Warning

Lambkin was designed as a simple tool for simple tasks. Today, it’s difficult to recommend over more functional systems such as Serverless and Apex. Please consider alternatives before getting too involved with Lambkin.

Lambkin

Lambkin is a CLI tool for generating and managing simple functions in AWS Lambda.

Supporting Node.js and Python, Lambkin generates skeleton functions, provides lightweight help for managing dependencies, and does its best to hide the complexity of publishing and running functions in Lambda.

Quick Start

Prerequisites

  • A valid ~/.aws/credentials file. eg.

    [default]
    aws_access_key_id = AKIAUAVOHGHOOWEEYIED
    aws_secret_access_key = 90kX2Y2bykTH9CpQFHCzN92tukYf26

    … or the equivalent environment variables (AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY).

  • A working virtualenv command if you will be writing Lambda functions in Python.

Installing

  • pip install lambkin

Examples

Create a new Python function from a basic template

lambkin create cool-func
cd cool-func
$EDITOR cool-func.py

…or a maybe you prefer Node.js

lambkin create cool-func --runtime=nodejs
cd cool-func
$EDITOR cool-func.js

Install packages and dependencies for a Python function

$EDITOR requirements.txt
lambkin build

Install packages and dependencies for a Node.js function

$EDITOR Makefile
lambkin build

Bundle up your function (with libraries) and send it to Lambda

lambkin publish --description 'The best function ever.'

Increase the timeout for a long-running function

lambkin publish --description 'Slow' --timeout=300

Increase the memory allocation for a function

lambkin publish --description 'Big' --memory=1024

Invoke the published function, right now!

lambkin run

Schedule the function to run at regular intervals

lambkin schedule --rate='10 minutes'

Remove the function from Lambda, but keep it locally

lambkin unpublish

Dependencies - pip and npm

Python functions get a requirements.txt file where you can specify dependencies. They will be installed into your function’s virtualenv by lambkin build.

For now, Node.js functions just get a Makefile. Nicer, more Node-ish dependency management is planned for the future.

Release files for lambkin 0.3.5

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

Source distribution (sdist)

Source distribution for lambkin 0.3.5
File Size Uploaded
lambkin-0.3.5.tar.gz 9.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lambkin 0.3.5
File Interpreter ABI Platform
lambkin-0.3.5-py2-none-any.whl Python 2 none any Details

Total release size: 23.1 kB

Release files / lambkin-0.3.5.tar.gz

Download URL lambkin-0.3.5.tar.gz
Size 9.9 kB
Tags Source
SHA-256 checksum
How to use checksums
fa0c553ffbdd2f5514d003f5ebf899c2414242d3886b24fdceb9ba6e90f9b6e6
BLAKE2b-256 checksum
How to use checksums
2dcaa2a9817f5d9d218e6c091d1491d62386900a55590960e796c0aa3820df7b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / lambkin-0.3.5-py2-none-any.whl

Download URL lambkin-0.3.5-py2-none-any.whl
Size 13.2 kB
Tags Python 2
SHA-256 checksum
How to use checksums
5dab5c6066fabd61b738f8a302c02793ea9771358add6e7b6e3d43f3c17f13db
BLAKE2b-256 checksum
How to use checksums
b426486ec87c95c94dc7054ea02138a6e5817c57886d9f4ce82f39b6995a296f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.3.5 This release

2 release files

0.3.4

1 release file

0.3.3

1 release file

0.3.2

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.9

1 release file

0.1.8

1 release file

0.1.7

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

0.0.7

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

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