Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

drawing

A no-dependency, simple, minimal and flexible HTTP server written in Python.
Supports: REST, WebSocket¹, vhosts, reverse proxy and static file delivery.

Features

  • No dependencies or additional requirements
  • REST routes (@http.route('/some/endpoint'))
  • websockets using plugin spiderWeb ¹
  • Can emulate files via @http.route('/example.html')
  • vhosts
  • TLS (SSL)
  • reverse proxy
  • .py extensions in web-root/vhosts without having to use FastCGI
  • No threads used by default (fully relies on epoll() and select() on Windows)
  • flexible runtime configuration and re-configuration (using annotation @http.configuration)

Installation

The project is hosted on PyPi and can be installed with pip.

sudo pip install slimHTTP

But it can also be cloned manually (or downloaded)

git clone https://github.com/Torxed/slimHTTP

Minimal example

import slimHTTP

http = slimHTTP.host(slimHTTP.HTTP)
http.run()

Serves any files under /srv/http by default in HTTP mode.

Footnote

It's not pretty down here. But it'll do in a pinch.

Release files for slimHTTP 1.0.1rc7

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

Source distribution (sdist)

Source distribution for slimHTTP 1.0.1rc7
File Size Uploaded
slimHTTP-1.0.1rc7.tar.gz 22.2 kB Details

Built distribution (wheel)

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

Total release size: 57.0 kB

Release files / slimHTTP-1.0.1rc7.tar.gz

Download URL slimHTTP-1.0.1rc7.tar.gz
Size 22.2 kB
Tags Source
SHA-256 checksum
How to use checksums
aa608950b805235deed3c4e1f88816688942351cfacf7c16b46d62854b0fa40d
BLAKE2b-256 checksum
How to use checksums
e221a2b3f73574c3d58012e00542772a32e32ec920deab672e78a55c17fd6bfd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.0

Release files / slimHTTP-1.0.1rc7-py3-none-any.whl

Download URL slimHTTP-1.0.1rc7-py3-none-any.whl
Size 34.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2538a36a3e3b9725e337990ff56849de3ed4a36410148e995d5e7d5d686020fe
BLAKE2b-256 checksum
How to use checksums
8795186a1c912eb209047eff7db7ad12b05ab6eaf7ada5e0762aa14df80ab484
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.0
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