protoserver
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.
Installation
pip install protoserver
The only function
protoserver.serve(directory = ".")
Example
import protoserver protoserver.serve() # Serves from the current directory
Another example
import protoserver
protoserver.serve("static") # Serves from ./static
Clone and run demo/demo.py if you need to see this in action.
Release files for protoserver 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| protoserver-0.1.2.tar.gz | 1.1 kB | Details |
Release files / protoserver-0.1.2.tar.gz
| Download URL | protoserver-0.1.2.tar.gz |
|---|---|
| Size | 1.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a252bb69df872b1bf9111b0cb07f8e3d99f32c578ba902d81bd0bd75fb6bb409
|
|
BLAKE2b-256 checksum How to use checksums |
edb34471445bd7e809881834f25f1c143f28f8fda609ea74de1b4e089b8093d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |