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-0.0.2.tar.gz
(7.6 kB
view hashes)
Built Distribution
Close
Hashes for bbwebservice-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a88847d5532ff3e172b4ad4835225c813db4a59e20a52e7f4b78687e7f5e26c |
|
MD5 | a96e806f50c3ab0f4622e62bd8f38667 |
|
BLAKE2b-256 | 1996fc547071dad7da410b01cb9a04c8a78944ee7fc3320b244f0a6736d3300c |