Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/perfecto25/sparky
sample web application built with FastAPI + uvicorn
https://github.com/perfecto25/sparky
Last synced: 7 days ago
JSON representation
sample web application built with FastAPI + uvicorn
- Host: GitHub
- URL: https://github.com/perfecto25/sparky
- Owner: perfecto25
- Created: 2020-05-08T04:34:03.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-09-16T18:29:49.000Z (about 2 years ago)
- Last Synced: 2023-02-28T06:03:11.562Z (over 1 year ago)
- Language: HTML
- Size: 673 KB
- Stars: 23
- Watchers: 1
- Forks: 10
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SPARKY
Sample web application built with FastAPI & Python 3.8
shows simple Flask-like structure with a Bootstrap template index.html
also has a background task scheduler (tasks.py) and error handler (errors.py)
Youtube tutorial:
https://www.youtube.com/watch?v=Vcqc4GzDvbI
## how to run
use Pipenv to install dependencies (Pipfile)pipenv install
start the web server
pipenv run sparky
## testing server load for background tasks
quick and dirty way to test server response, initiate multiple simultaneous curl calls from different hosts# will start 1000 curl calls to your background task route
for i in {1..1000}; do curl -X POST "http://0.0.0.0:5700/task/run/NAME/$i" -H "accept: application/json"; done## additional resources
https://github.com/mjhea0/awesome-fastapi#tutorials