Skip to main content

An HTTP to WSGI server that relies on Python's included batteries

Project description

WSGI Lithium

A lightweight and dumb HTTP to WSGI server that relies on Python's included batteries.

This WSGI server is intended to be used in Kubernetes-like environments, where some component handle load-balancing, application crashing, loggin, etc.

How to install

pip install wsgi_lithium

How to use

WSGI Lithium should be used behind a reverse proxy.

wsgi-lithium -b [::]:8000 module:app

How to set SCRIPT_NAME from the HTTP server

Simply configure your reverse proxy to set the Virtual-Location header to the value you want in SCRIPT_NAME. You might have to rewrite the path with said reverse proxy.

For example, if you serve an application on /foo/bar, where /bar is the sub path, and /foo is the "virtual location", set the Virtual-Location header to /foo and rewrite the path so it become /bar.

Project details


Download files

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

Source Distribution

wsgi_lithium-0.3.0.tar.gz (6.8 kB view hashes)

Uploaded Source

Built Distribution

wsgi_lithium-0.3.0-py3-none-any.whl (6.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page