Adapter for FastAPI to run APIs built using AWS SAM
Faster-SAM
is a library designed to integrate APIs built using the AWS Serverless Application Model (SAM) with FastAPI, enabling developers to run their AWS SAM applications outside of the AWS environment. FastAPI, known for its high-performance and easy-to-use framework for building APIs with Python, gains compatibility with AWS SAM through this specialized adapter.
- Python 3.8+
- FastAPI
- PyYaml
To install the Faster-SAM
library, use the following pip command:
pip install faster-sam
Add this code example in your project:
from fastapi import FastAPI
from faster_sam import SAM
app = FastAPI()
sam = SAM()
sam.configure_api(app)