Skip to main content

A Simple Decorator to create a REST Python API in serverless.py

Project description

Decorators who avoid code repetition in their lambda function

Installation

$ pip install serverless

Usage

@serverless
def your_function(req):
    return {
        "statusCode": 200,
        "body": {
            message: "serverless.py"
        }
    }

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

serverless.py-0.0.2.tar.gz (1.2 kB view details)

Uploaded Source

Built Distributions

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

serverless_py-0.0.2-py3-none-any.whl (1.5 kB view details)

Uploaded Python 3

serverless.py-0.0.2-py3-none-any.whl (1.4 kB view details)

Uploaded Python 3

File details

Details for the file serverless.py-0.0.2.tar.gz.

File metadata

  • Download URL: serverless.py-0.0.2.tar.gz
  • Upload date:
  • Size: 1.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.9

File hashes

Hashes for serverless.py-0.0.2.tar.gz
Algorithm Hash digest
SHA256 52e6a8dd69ea2a2b8cff272d49210984c5de1538fc0ff9e2e9258a5bf3708155
MD5 58cee6f646aa62d819dc59a7a1e54927
BLAKE2b-256 c915cc4f1fee3635cccc9bfc51e29b03afc8e81a293e66fd3638b591a958e190

See more details on using hashes here.

File details

Details for the file serverless_py-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: serverless_py-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 1.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.9

File hashes

Hashes for serverless_py-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d8fdc5ff718037fbc06b8cb9a3822b7c7be7f3b24d6c3edcce81868db113a7cd
MD5 82be669bb595308c76603799de60eb06
BLAKE2b-256 2dac79214def53274921e938ea5b93bee6b4532d85cf63f58d91a9db74595afd

See more details on using hashes here.

File details

Details for the file serverless.py-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: serverless.py-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 1.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.9

File hashes

Hashes for serverless.py-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 57d1823ef2af3dcc5746e111cb8026f38388e5a9251a7fcee5dee2f5101ede55
MD5 ba6e920f75dd1064381cd9a3255248dc
BLAKE2b-256 5c72e54b01b9416a3b4710b4b0759c90a002a8040f62db8971bb39bf44d8e19a

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