Metadata-Version: 2.4
Name: rapid-lambda
Version: 1.1.0
Summary: FastAPI-style routing and dependency injection for AWS Lambda
Author-email: chalapathy v <chalapathyv57@gmail.com>
License: MIT
Project-URL: Homepage, https://github.com
Project-URL: Source Code, https://github.com/chalapathy-reddy/rapid-lambda
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: aws-lambda-powertools>=3.23.0
Requires-Dist: pydantic>=2.0
Dynamic: license-file


# 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:

```python
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.
