warker

Leave the tedious operation to the back end


Keywords
api
License
MIT
Install
pip install warker==1.0

Documentation

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