Skip to content

evgenii-d/basic-python-http-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic Python HTTP Server (BPHS)

Command-line static HTTP server build upon Python HTTPServer from standard library.

No additional dependencies required.

Installation

One-file bundled executable can be downloaded from the Releases section.

Tested on Windows 10/11, Ubuntu 22.04.

Usage

bphs [-h] [-p PORT] [-d PATH] [-l] [--cors]

-h, --help            show help message and exit
-p PORT, --port PORT  port to use [8080]
-d PATH, --dir PATH   directory to serve [current directory]
-l, --listing         enable directory listing
--cors                enable CORS headers