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
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 wsgi_lithium-0.3.0.tar.gz.
File metadata
- Download URL: wsgi_lithium-0.3.0.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.30.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b1d9d1f1d436016489b240de4bd62ee0113163403761aca25d4de7c961389f86
|
|
| MD5 |
f01ad62b92299f079710161cf957b786
|
|
| BLAKE2b-256 |
8f3a12995b03004b39b78050e1e89f7831dab6899ec1b057e983ff7773bcc345
|
File details
Details for the file wsgi_lithium-0.3.0-py3-none-any.whl.
File metadata
- Download URL: wsgi_lithium-0.3.0-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.30.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1309ba392419763b21fada1810a81d6751b1992438c07cbd545e9478b836828e
|
|
| MD5 |
83ec528bfeb44f624a623cde77adc860
|
|
| BLAKE2b-256 |
58bccb4ac38ea601c97cb2673b2ac43151400c5d5df404edfec756f01bcba717
|