Skip to content

tothegump/humph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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