A sidekick to make your AWS Lambda async
Project description
lambchop
A sidekick for your AWS Lambda
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
Release history Release notifications | RSS feed
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.8.tar.gz
(5.7 kB
view hashes)