RangeHTTPServer

1.4.0 · active · verified Mon Apr 13

RangeHTTPServer is a Python module that provides a simple HTTP server with support for HTTP Range requests, extending Python's built-in SimpleHTTPServer. It enables clients to request portions of files, which is particularly useful for media streaming, download managers, or local web development involving large data files. The project is sporadically maintained but active, with its latest version 1.4.0 released in August 2024.

Warnings

Install

Imports

Quickstart

To start the RangeHTTPServer, navigate to the directory you wish to serve and run it as a module. You can specify a port and, starting with version 1.4.0, a bind address.

python -m rangehttpserver --bind 127.0.0.1 8000
# Access your files at http://127.0.0.1:8000
# For example, create a file: echo 'Hello, Range!' > index.html

view raw JSON →