https://github.com/asynched/fastlify
Fastlify is a framework built around Flask for dealing with REST APIs. 🏎
https://github.com/asynched/fastlify
framework http python
Last synced: about 1 month ago
JSON representation
Fastlify is a framework built around Flask for dealing with REST APIs. 🏎
- Host: GitHub
- URL: https://github.com/asynched/fastlify
- Owner: asynched
- Created: 2021-10-14T05:11:05.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-10-15T01:57:49.000Z (over 4 years ago)
- Last Synced: 2025-12-26T09:57:59.098Z (6 months ago)
- Topics: framework, http, python
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fastlify
Fastlify is a framework built around Flask for dealing with REST APIs
## Example app
```py
from fastlify import Fastlify
from fastlify.http.request import Request
from fastlify.http.response import Response
from fastlify.decorators.http import controller
from fastlify.controllers.http_controller import HTTPController
app = Fastlify.create()
@controller("/")
class HelloController(HTTPController):
def get(request: Request) -> Response:
return Response({
"message": "Hello, world!"
}, status=200)
app.register_controller(HelloController)
if __name__ == "__main__":
app.listen(port=8081)
```
## Author
|  |
| ----------------------------------------------------- |
| [Eder Lima](https://github.com/Nxrth-x) |