Install & Compatibility
Where this runs
tested against v1.1.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 19.3MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 2.4s · import 0.000s · 20MB
17MB installed
● package 17MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
run
✓ from httpserver import run
✗ from httpserver import HTTPServer
Creates a simple HTTP server responding with 'Hello, world!' on GET requests.
import os
from httpserver import HTTPServer, RequestHandler
class HelloHandler(RequestHandler):
def do_GET(self):
self.send_response(200)
self.send_header('Content-type', 'text/plain')
self.end_headers()
self.wfile.write(b"Hello, world!")
server = HTTPServer(('localhost', 8080), HelloHandler)
print('Server running on http://localhost:8080')
server.serve_forever()
Upgrade
Version history
1.1.0latest on PyPI · released Apr 2, 2015
Audit
Dependencies
No dependency data recorded yet.