Skip to main content

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

Metadata

Release files for warker 1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for warker 1.1
File Size Uploaded
warker-1.1.tar.gz 1.8 kB Details

Release files / warker-1.1.tar.gz

Download URL warker-1.1.tar.gz
Size 1.8 kB
Tags Source
SHA-256 checksum
How to use checksums
55f614cc2e8b06303207e9cf327d2976ed197e0892a807d9c4389c014c7363b4
BLAKE2b-256 checksum
How to use checksums
2c1f149e0469e8717768db4e6b8addcfad48bd125bdecc90c8f013b5108bda54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

Release history Release notifications | RSS feed

This release

1.1 This release

1 release file

1.0

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page