4 ms·
I open-sourced a Python library that makes it easy to offload functions to AWS Lambda. Compared to other frameworks, it's a bit more like Celery instead of focu
by kichik 6y ago
I open-sourced a Python library that makes it easy to offload functions to AWS Lambda. Compared to other frameworks, it's a bit more like Celery instead of focusing on HTTP API.
https://github.com/CloudSnorkel/lovage/ https://github.com/CloudSnorkel/lovage/
app = lovage.Lovage(lovage.backends.AwsLambdaBackend("lovage-test"))
@app.task
def hello(x):
return x + 1
if __name__ == "__main__":
app.deploy(root=".", requirements=["requests"])
print("hello.invoke(1) returned", hello.invoke(1))