Skip to main content

A sidekick for your AWS Lambda

Project description


Logo

lambchop

A sidekick for your AWS Lambda

version

Overview

lambchop is an Python package to make regular AWS Lambda functions asyncronous by allowing them to run background processes.

Installation

pypi:

pip install lambchop

github:

pip install git+ssh://git@github.com/dave-lanigan/lambchop.git
pip install git+https://git@github.com/dave-lanigan/lambchop.git

Usage

import anyio
import time
from lambchop import SideKick

def long_running_process(x, y):
    print("Starting process.")
    time.sleep(x + y)
    print("Completed.")


async def main():
    sk = SideKick()
    await sk.process(long_running_process, x=5, y=3)
    print("Done sending.")

if __name__ == "__main__":
    anyio.run(main)

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

lambchop-0.0.6.tar.gz (4.6 kB view hashes)

Uploaded Source

Supported by

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