Yet another WSGI server implementation.
Project description
Yet another WSGI server implementation.
Usage
Usage is like this:
$ kwsgi hello.py app --reload
Options are below:
$ kwsgi --help
Usage: kwsgi [OPTIONS] FILEPATH WSGIAPP
Example: kwsgi hello.py app -p 5000 --reload
Options:
-h, --host TEXT The interface to bind to.
-p, --port INTEGER The port to bind to.
--reload / --no-reload Enable live reloading
--daemonize / --no-daemonize Detaches the server from the controlling
terminal and enters the background.
--interval INTEGER Interval time to check file changed for
reloading
--validate / --no-validate Validating your WSGI application complying with
PEP3333 compliance.
--help Show this message and exit.
And you can integrate with kwsgi from python script:
from kwsgi import WSGIServer
def application(env, start_response):
start_response('200 OK', [('Content-type', 'text/plain; charset=utf-8')])
return [b'Hello World']
if __name__ == '__main__':
server = WSGIServer(application)
server.run_forever()
Development Roadmap
These are the current planned major milestones:
[DONE] Add minimum implementation (at least this can run django application).
Optimize some important performance bottlenecks using C-extensions, mypyc or Rust.
Add green threads implementation.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kwsgi-0.0.2.tar.gz.
File metadata
- Download URL: kwsgi-0.0.2.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86a68c4d5215d9bd4338c23ed950a00c7088035056f9e9ed67c53d42c2d8255b
|
|
| MD5 |
56f74d10f738b495eee12cd60c98ad55
|
|
| BLAKE2b-256 |
4a3ad449c2e71eb8ee22bf980a8acb577af577eb764e5aa8deb595881edfd28a
|
File details
Details for the file kwsgi-0.0.2-py3-none-any.whl.
File metadata
- Download URL: kwsgi-0.0.2-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
25ea8c3ce39e6d2c11cee08fc449d97e9a912d2256cd6ad9ada1b0f6233712cd
|
|
| MD5 |
b6179bbd22c8dc53a55f85752d23cd67
|
|
| BLAKE2b-256 |
198afdec88faf124d775487a14db0cf78bd4da5ad3c28dbbcd441cc8eb5eb545
|