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

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 Provenance Actions
warker-1.1.tar.gz 1.8 kB Without provenance Details for warker-1.1.tar.gz

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

Security for warker 1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1 This release

1 release file No provenance

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