A lightweight, concurrent HTTP web server built from scratch in Python.
- multi_threading: utilizes a thread-per-connection model.
- WSGI Standard Compliance: can serve python wsgi application/frameworks such as flask.
- static content server: detect static content type automatically and serve it from a configurable root directory.
- Python 3.8+
- Linux / WSL2 environment (Tested on Ubuntu)
Specify the root directory using the --root flag (Defaults to /):
python3 server1.py --root example
- start request path with /static
example: curl localhost:8000/static/
Pass your application entry point using the --app flag (Format: module_name:app_variable):
python3 server1.py --app module_name:app
example: python3 server1.py --app testflask:app