Skip to main content

Yet another WSGI server implementation.

Project description

Yet another WSGI server implementation.


Usage is like this:

$ kwsgi app --reload

Options are below:

$ kwsgi --help

  Example: kwsgi app -p 5000 --reload

  -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
  --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)

Development Roadmap

These are the current planned major milestones:

  1. [DONE] Add minimum implementation (at least this can run django application).
  2. Optimize some important performance bottlenecks using C-extensions, mypyc or Rust.
  3. Add green threads implementation.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for kwsgi, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size kwsgi-0.0.2-py3-none-any.whl (7.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size kwsgi-0.0.2.tar.gz (7.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page