Skip to content

Simple Python3 Hug Application Hosted on AWS Lambda & API Gateway via Zappa

Notifications You must be signed in to change notification settings

mcrowson/zappa-hug-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hug Example Using Zappa

This is a super simple hug example using Zappa. The only real trick here was knowing to set the app setting in the zappa_settings.json file. Hug provides a magic method for the wsgi compatible server that should be given to Zappa.

"app_function": "app.__hug_wsgi__"

Make sure you modify your zappa s3_bucket setting prior to deployment.

python -m venv env
source env/bin/activate
pip install -r requirements.txt
zappa deploy

About

Simple Python3 Hug Application Hosted on AWS Lambda & API Gateway via Zappa

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages