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.
pip install rangehttpserverVerified import paths — ran on the pinned version, not inferred.
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.
For production use, consider robust web servers like Nginx, Apache, or Python frameworks like Flask/Django with appropriate serving mechanisms.
Clients should be aware of this limitation; complex range requests might not behave as expected. Test with your specific client (e.g., media player) to confirm compatibility.
Upgrade to version 1.4.0 or later to ensure port and bind address arguments are correctly recognized. Always test your command-line arguments if using older versions.
No dependency data recorded yet.