Skip to main content

aws-lambda-sls

Python Simple Serverless for AWS Lambda Project.

Quick Start

You can create lambda Lambda sls service:

from aws_lambda_sls import LambdaSls

app = LambdaSls("sls_app")
app.run()

Register Lambda Function

from aws_lambda_sls import register_function


@register_function
def lambda_handler(event, context):
    return {
        "event": event,
        "aws_request_id": context.aws_request_id
    }

Commands

Create App

Usage: sls create-app [OPTIONS] PROJECT_NAME

Options:
  --help  Show this message and exit.

Package App

Usage: sls package [OPTIONS]

Options:
  --generate-sam    Create a single packaged file. By default, the 'out'
                    argument specifies a directory in which the package assets
                    will be placed.  If this argument is specified, a single
                    zip file will be created instead.
  --stage TEXT      lambda function stage, default dev.
  --out TEXT        lambda package out directory, default dist.
  --force-download  If force download dependency lib, default false.
  --help            Show this message and exit.

Deploy App

Usage: sls deploy [OPTIONS]

Options:
  --stage TEXT        Name of the sls stage to deploy to. Specifying a new sls
                      stage will create an entirely new set of AWS resources.
  --profile TEXT      Override profile at deploy time.
  --deploy-file TEXT  deployment file.
  --s3-key TEXT       s3 file.
  --help              Show this message and exit.

Create Local Lambda Server.

Usage: sls local [OPTIONS]

Options:
  --host TEXT
  --port INTEGER
  --stage TEXT        Name of the sls stage for the local server to use.
  --deploy-file TEXT  deployment file.
  --log-file TEXT     output log file path.
  --help              Show this message and exit.

Metadata

Release files for aws-lambda-sls 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aws-lambda-sls 0.1.0
File Size Uploaded Provenance Actions
aws-lambda-sls-0.1.0.tar.gz 31.5 kB Without provenance Details for aws-lambda-sls-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aws-lambda-sls 0.1.0
File Interpreter ABI Platform Actions
aws_lambda_sls-0.1.0-py3-none-any.whl Python 3 none any Details for aws_lambda_sls-0.1.0-py3-none-any.whl

Total release size: 68.0 kB

Release files / aws-lambda-sls-0.1.0.tar.gz

Download URL aws-lambda-sls-0.1.0.tar.gz
Size 31.5 kB
Tags Source
SHA-256 checksum
How to use checksums
16d7ebed6561edd3d73b1e0ae28701efe1b333fc861897511aa1b9d6636b6247
BLAKE2b-256 checksum
How to use checksums
bbb31056ebf0c1a4cb1db75525ebadf926ca42251670aea89e48513155d1bf53
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

Release files / aws_lambda_sls-0.1.0-py3-none-any.whl

Download URL aws_lambda_sls-0.1.0-py3-none-any.whl
Size 36.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3e6a7530790c78ccc214b81774b3c72a7433fc9b49b84d6f57eb6b77d2119dc5
BLAKE2b-256 checksum
How to use checksums
1446941d307a1ea2fb5e1f78bd99ee6526e6a466b957848d0ba5380856dff263
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

Security for aws-lambda-sls 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page