https://github.com/dreynolds/local-lambda
Python package to run lambdas as if they were behind an AWS API gateway
https://github.com/dreynolds/local-lambda
api-gateway aws lambda python
Last synced: 6 months ago
JSON representation
Python package to run lambdas as if they were behind an AWS API gateway
- Host: GitHub
- URL: https://github.com/dreynolds/local-lambda
- Owner: dreynolds
- License: mit
- Created: 2021-03-01T17:06:08.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-04-12T08:15:09.000Z (about 5 years ago)
- Last Synced: 2025-09-28T11:37:11.526Z (9 months ago)
- Topics: api-gateway, aws, lambda, python
- Language: Python
- Homepage:
- Size: 56.6 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# local_lambda
Simple mechanism to run lambdas as if they were behind an API gateway
## Installation
```
$ pip install local_lambda
```
## Running
Create a configuration file named `.local-lambda.json` with a format simlar to this replacing with your funcitons and URLs
```
{
"endpoints": {
"/test": {
"GET": {
"function": "tests.functions.main.debug_me"
},
"POST": {
"function": "tests.functions.main.debug_me"
}
}
}
}
```
Run the following command:
```
$ local_lambda
```