Flask for humans.
Project description
GodLike
Normally when I work on a web server I use express with JavaScript instead of flask with Python. Even though I like python, I don't like flask. Express is a great tool for web development, it's in JavaScript though. So I decided to write a version of express in Python.
I came up with the name "god-like" because of how god like it would be to use express in Python.
Lets see how it works.
from god_like import GodLike
app = GodLike()
@app.post("/")
def index(req, res):
res.send(f"The body is {req.body}")
app.listen(port=8080)
Flask equivalent:
from flask import Flask, request
app = Flask(__name__)
@app.route("/", methods["POST"])
def index():
return f"The body is {request.data.decode('utf-8')}"
app.run(port=8080)
Documentation: https://hostedposted.github.io/god-like/latest/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
god-like-1.0.1.tar.gz
(6.1 kB
view details)
Built Distribution
File details
Details for the file god-like-1.0.1.tar.gz
.
File metadata
- Download URL: god-like-1.0.1.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.6 CPython/3.9.0 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 270c7f8ee9023c8b6368f3ce37ab8d5287eb7ea621145ad21e3cf75dae92bd8a |
|
MD5 | b17a3d72cf2bc832d82cfd344694ab60 |
|
BLAKE2b-256 | 1cddcb1d3883201e436095fccb6880b93282a19e750b76613adb7fce3f233bc8 |
File details
Details for the file god_like-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: god_like-1.0.1-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.6 CPython/3.9.0 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52eb6b1f601f0167b0643c029b18e7647f8c6ae9c4d231c4d532ef0cb26d4fc1 |
|
MD5 | cde7746f882f99e9b1356e3d11a97d1c |
|
BLAKE2b-256 | d0f1d8fa0113d07cbf3aed6915f767bd0c60121fee937cb6f046fa76092ab927 |