Leave the tedious operation to the back end
Project description
Warker
Warker is a very simple HTTP interface based on Flask
Install
pip install warker -U
Usage
from warker import WarkerServer
from warker import ApiResponse
app = WarkerServer(
name="hello",
host="127.0.0.1",
port=5000,
debug=False,
loading=True,
)
def hi():
return ApiResponse({
"msg": "Hello World!"
},status=200)
app.install("hi", hi)
app.running()
It is index
{
"name": "hello",
"workers": {
"hi": "/workers/hi"
}
}
It is workers
{
"msg": "Hello World!"
}
And you can get Request
and Session
, they based on Flask
from warker import request
from warker import session
Link
Website: https://github.com/isclub/warker
Releases: https://pypi.org/project/warker
License
MIT LICENSE
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
warker-1.1.tar.gz
(1.8 kB
view hashes)