Skip to main content

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.

Metadata

Release files for wsgi_lithium 0.3.0

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

Source distribution (sdist)

Source distribution for wsgi_lithium 0.3.0
File Size Uploaded
wsgi_lithium-0.3.0.tar.gz 6.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for wsgi_lithium 0.3.0
File Interpreter ABI Platform
wsgi_lithium-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 13.3 kB

Release files / wsgi_lithium-0.3.0.tar.gz

Download URL wsgi_lithium-0.3.0.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b1d9d1f1d436016489b240de4bd62ee0113163403761aca25d4de7c961389f86
BLAKE2b-256 checksum
How to use checksums
8f3a12995b03004b39b78050e1e89f7831dab6899ec1b057e983ff7773bcc345
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.30.0

Release files / wsgi_lithium-0.3.0-py3-none-any.whl

Download URL wsgi_lithium-0.3.0-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1309ba392419763b21fada1810a81d6751b1992438c07cbd545e9478b836828e
BLAKE2b-256 checksum
How to use checksums
58bccb4ac38ea601c97cb2673b2ac43151400c5d5df404edfec756f01bcba717
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.30.0

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

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