Skip to main content

Tools for making serverless apps easier

Project description

easy-serverless

Easy serverless is a set of tools designed to make writing serverless code easier. So far its just a wrapper for AWS Lambda functions, designed to make writing them easier and more pythonic.

from easy_serverless.aws import easy_lambda

def hello(first_name, last_name=""):

    message = f'Hello {first_name} {last_name}!'.strip()
    return {'message': message}

lambda_handler = easy_lambda(hello, unpack_lists=True)

Just point AWS to the lambda_handler variable instead of the hello function and that's it. easy_lambda handles unpacking the arguments from the lambda event into your function so you don't have to write a bunch of boilerplate code to handle it. The following inputs to the lambda function will all work correctly.

{first_name: "John", last_name: "Doe"}
>>> {'message': "Hello John Doe!"}

{first_name: "John"}
>>> {'message': "Hello John!"}

"John"
>>> {'message': "Hello John!"}

["John", Doe]
>>> {'message': "Hello John Doe!"}

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

easy_serverless-1.0.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

easy_serverless-1.0.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file easy_serverless-1.0.0.tar.gz.

File metadata

  • Download URL: easy_serverless-1.0.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.19

File hashes

Hashes for easy_serverless-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2a5857d3ea0309bc41d46d4bcc8d7430e85496aedd6b6d0a517fcbb4a77e13ad
MD5 7b438756fbfc9eced2c030eeefe8fa5d
BLAKE2b-256 b3c4fabca94cbb7fdf8ffbcbbeec88659aaa600be97c2912b52b0ea9e3989c22

See more details on using hashes here.

File details

Details for the file easy_serverless-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for easy_serverless-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d403fe1cee739e3662bf17644fb0f2974b7e9e5c1df072cd7a7f2d50e904e38f
MD5 6bb1cedb3176418ad4d1fe778fc75c1f
BLAKE2b-256 1d2dfc7786cc47a89297da42f4076f35d499710df769f2ef080c59449919b00c

See more details on using hashes here.

Supported by

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