Skip to main content

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


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.7.tar.gz (8.3 kB view hashes)

Uploaded Source

Built Distribution

bbwebservice-0.0.7-py3-none-any.whl (10.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page