A bare bone webserver
Project description
How to make your first web-app
from bbwebservice.webserver import *
@register(route='/',type=MIME_TYPE.HTML)
def main_page():
return load_file('/content/index.html')
@register(route='/main.css',type=MIME_TYPE.CSS)
def main_css():
return load_file('/content/main.css')
start()
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
bbwebservice-1.0.0.tar.gz
(14.7 kB
view hashes)
Built Distribution
Close
Hashes for bbwebservice-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b3ba4ed606aa302074f931ca238b067b3362b7f3055494c0a7ff98bbfcba9de |
|
MD5 | 4670138422a15d61b85af2a636921958 |
|
BLAKE2b-256 | 44a100e7ca3f506fa138e6d1c40e88cb6e2da12ae0a681e572f8a1511e341d6b |