Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Really simple python webserver for prototyping

Project description

Really really simple python webserver for prototyping. Basically just wraps SimpleHTTPServer/SimpleHTTPRequestHandler. I made this for my own purposes, but you’re welcome to use it.

Defaults to running on the port specified in the PORT environment variable, or 8080 if not defined.


pip install protoserver

The only function

protoserver.serve(directory = ".")


import protoserver

protoserver.serve() # Serves from the current directory

Another example

import protoserver

protoserver.serve("static")  # Serves from ./static

Clone and run demo/ if you need to see this in action.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for protoserver, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size protoserver-0.1.2.tar.gz (1.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page