Skip to content

There is Flask, there is Bottle, then there is Canteen, an in progress python web micro framework

Notifications You must be signed in to change notification settings

swoopej/canteen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Canteen is an in progress Python web framework.

So far, users can add functions in the following format:

@app.add_route(/hello)
def say_hello():
	return 'Top of the morning'

users can add parameters for a url and the function that is being decorated with the following:

@app.add_route(/hello/<user>)
def say_hello(user):
	return 'Top of the morning, ' + user

users can specify calling functions only for certain HTTP methods by adding to the arguments that are passed to the add_route decorator.  If not specified, the methods will default to only GET:

@app.add_route(/hello/<user>, methods = ['GET', 'POST']
def say_hello(user):
	return 'Top of the morning, ' + user

coming soon:  session management, mime types.

About

There is Flask, there is Bottle, then there is Canteen, an in progress python web micro framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages