demos for running a single python web service that listens on multiple ports.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Charles Reid 388b1aa8fb add static content example, plus some simple static content 6 years ago
site1 add static content example, plus some simple static content 6 years ago
site2 add static content example, plus some simple static content 6 years ago
site3 add static content example, plus some simple static content 6 years ago
LICENSE init commit of readme and license 6 years ago
README.md update readme to mention twisted 6 years ago
dead_simple.py add dead simple example - first example 6 years ago
static_content.py add static content example, plus some simple static content 6 years ago

README.md

python multiport

Examples showing how to use twisted (a Python networking library) to run a web server that listens on multiple ports.

  • dead_simple.py - a dead simple example for serving up content using strings containing HTML
  • static_content.py - an example showing how to create twisted Site objects for different folders, and web servers listening on different ports for each different folder