Simple HTTP server request routing
Project description
vev — simple HTTP server request routing
An extremely simple web routing scheme based on Python’s default web server modules, vev makes it easy to quickly create simple web servers. At this point, it’s basically just an experiment.
It works both for Python 2 and 3.
“Vev” is the Norwegian word for “web”.
Example
import vev class HelloWorld(vev.Server): @vev.route("/") def index(self): return "<html><body><a href='/foo'>Foo</a></body></html>" @vev.route("/foo") def foo(self): return "<html><body><a href='/'>Start</a></body></html>" if __name__ == "__main__": vev.serve(("0.0.0.0", 8080), HelloWorld)
License
Copyright 2015 Christian Stigen Larsen
Distributed under the LGPL 2.1. You are allowed to change the license on a particular copy to the LGPL 3.0, the GPL 2.0 or the GPL 3.0.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
vev-0.5.0.tar.gz
(12.5 kB
view details)
Built Distribution
File details
Details for the file vev-0.5.0.tar.gz
.
File metadata
- Download URL: vev-0.5.0.tar.gz
- Upload date:
- Size: 12.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5cb03871edff7737085671b08b8b9d6605f8e77094022e7c4c8d70a7eb2c873f |
|
MD5 | 86dbd96fff0a1d538a6ef9ff759d82f6 |
|
BLAKE2b-256 | 1317e00a63455f58ad7a1414c9bd9f80acec1b26f9f2e18ecf142934282e7c82 |
File details
Details for the file vev-0.5.0-py2.py3-none-any.whl
.
File metadata
- Download URL: vev-0.5.0-py2.py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0273d109e329573e9014a94a08aa67e00578c0fbb218160087432ac94b6502df |
|
MD5 | ace12a4d3f91afe7df82b41557a367ae |
|
BLAKE2b-256 | d3b2d4d9a467e29f690f9946baf1e7211230d5e05b89feecaefea2846fc03e63 |