Skip to main content

A minimalistic non-threaded HTTP server written in Python. Supports REST & WebSockets¹.

Project description

drawing

A simple, minimal and flexible Python HTTP server.
Usecases may be: REST, WebSocket¹, reverse proxy and static file delivery.

Supports

  • REST routes (@http.route('/some/endpoint'))
  • websockets if @http.on_upgrade is defined using spiderWeb ¹
  • Static file emulation with @http.route('/example.html')
  • vhosts
  • ssl/tls
  • reverse proxy
  • python module proxy
  • No threading or threads used (fully relies on epoll() (select() on Windows))
  • flexible configuration in runtime via @http.configuration

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.

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

slimHTTP-1.0.1rc4.tar.gz (17.5 kB view details)

Uploaded Source

Built Distribution

slimHTTP-1.0.1rc4-py3-none-any.whl (30.5 kB view details)

Uploaded Python 3

File details

Details for the file slimHTTP-1.0.1rc4.tar.gz.

File metadata

  • Download URL: slimHTTP-1.0.1rc4.tar.gz
  • Upload date:
  • Size: 17.5 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for slimHTTP-1.0.1rc4.tar.gz
Algorithm Hash digest
SHA256 9e06e5b5d8edb0e684517b6629c9bd53912d58e7f33f526499c559c20ac5b66b
MD5 091826995df219c22785f46762010e8d
BLAKE2b-256 1236810dcff2d5910f77d686e49889796d3818aeaa5717cac4b0ed405b2e6605

See more details on using hashes here.

Provenance

File details

Details for the file slimHTTP-1.0.1rc4-py3-none-any.whl.

File metadata

  • Download URL: slimHTTP-1.0.1rc4-py3-none-any.whl
  • Upload date:
  • Size: 30.5 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for slimHTTP-1.0.1rc4-py3-none-any.whl
Algorithm Hash digest
SHA256 9b5a69e1ed5a4d8d941c90abb83ff81e551f0cdcd901b87ec3d1ebfded577153
MD5 0b958ddcb689760af2a1f362933b2cb0
BLAKE2b-256 c3a83faa7d9f1ffbdbc59ea5b819a0000e21700fc78391cf730f8b99701074c3

See more details on using hashes here.

Provenance

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