Skip to content

tothegump/humph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

0c25d00 · Jan 1, 2018

History

6 Commits
Jan 1, 2018
Dec 17, 2017
Dec 17, 2017
Mar 18, 2017
Jan 1, 2018
Dec 17, 2017
Dec 16, 2017

Repository files navigation

Humph

How the camel got his hump.

The camel says, "Humph!"

This is a very small web framework. It does nothing but says "Humph!"

(*^__^*)

Tutorial

Quick Start

from humph.base import run_server
from humph.response import Response
from humph.router import add_urls


def hello(request):
    return Response('hello, world.')


def index(request):
    return Response('this is index.')


urls = [
    ('^/$', index),
    ('^/hello$', hello),
]


if __name__ == '__main__':
    add_urls(urls)
    run_server(port=3000)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages