Skip to content

Adapter for FastAPI to run APIs built using AWS SAM

License

Notifications You must be signed in to change notification settings

noverde/faster-sam

Repository files navigation

Faster-SAM

Adapter for FastAPI to run APIs built using AWS SAM

Python Tests PyPI version

About The Project

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.

Dependencies

  • Python 3.8+
  • FastAPI
  • PyYaml

Installation

To install the Faster-SAM library, use the following pip command:

pip install faster-sam

Usage example

Add this code example in your project:

from fastapi import FastAPI
from faster_sam import SAM

app = FastAPI()

sam = SAM()
sam.configure_api(app)