Skip to content

A simple static HTTP server built with Python using Socket Programming

Notifications You must be signed in to change notification settings

realsdx/tinyserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TinyServer

This is a simple static HTTP web server written in Python

It provides minimal HTTP server to serve simple HTML pages

Features

  • Content Cahing
  • Gzip compression
  • No dependencies!
  • Native TLS encryption #TODO
  • Diretory listing #TODO
  • Byte-serving for large files #TODO

Screenshots

TinyServer in action alt text

alt text

Default 404 Page alt text

Usage

It serves HTML pages. At least one .hmtl file should be in the current directory.

If no specified filename is given in URL then it will serve index.html.

Start the server in specified port.

python main.py 8888

Start the server in default port 5000

python main.py

This server is for serving static files only. Not for production use cases

About

A simple static HTTP server built with Python using Socket Programming

Topics

Resources

Stars

Watchers

Forks