Skip to main content

FastAPI-style routing and dependency injection for AWS Lambda

Project description

rapid_lambda

Lightweight FastAPI-style dependency injection and routing for AWS Lambda.

Supports:

  • Routing
  • Dependency Injection
  • Query parameter injection
  • Structured exceptions
  • Optional request logging with route-level control

Example:

from rapid_lambda import LambdaApp, Depends, Query

app = LambdaApp()

def get_user():
    return {"id": "123"}

@app.route("/profile", "GET")
def profile(user = Depends(get_user)):
    return {"user": user}

@app.route("/login", "POST", log=False)
def login():
    return {"token": "abc"}

@app.route("/items", "GET")
def list_items(page: int = Query(default=1)):
    return {"page": page}

def lambda_handler(event, context):
    return app.handler(event, context)

Contributing & License

  • Source: https://github.com/chalapathy-reddy/rapid-lambda
  • License: MIT

Contributions are welcome via PRs. Please follow the repository's contribution guidelines for tests and code style.

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

rapid_lambda-1.1.3.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

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

rapid_lambda-1.1.3-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file rapid_lambda-1.1.3.tar.gz.

File metadata

  • Download URL: rapid_lambda-1.1.3.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for rapid_lambda-1.1.3.tar.gz
Algorithm Hash digest
SHA256 533b1a3ad1d757ea78cc5809d6d5aa453eeed99f10c7731f8c2a715611e0a5ab
MD5 c36b5d1b9f10d9252db30acd9f31e5e2
BLAKE2b-256 fef8a7bdfaa84e59c6c37bb74050bcb7c7c6da5ee89af5e1943a62746a302db6

See more details on using hashes here.

Provenance

The following attestation bundles were made for rapid_lambda-1.1.3.tar.gz:

Publisher: workflow.yml on chalapathy-reddy/rapid-lambda

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rapid_lambda-1.1.3-py3-none-any.whl.

File metadata

  • Download URL: rapid_lambda-1.1.3-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for rapid_lambda-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f098f58258605d1238d60d7864924fb016645660d73576242375ef2b87f432cf
MD5 ecd43a3b58622bf3ca163e0b73c8c69a
BLAKE2b-256 5a449c4d32d24e3816061d348e891b08c0fabb73e0a7caef7de3f20abde752b3

See more details on using hashes here.

Provenance

The following attestation bundles were made for rapid_lambda-1.1.3-py3-none-any.whl:

Publisher: workflow.yml on chalapathy-reddy/rapid-lambda

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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