Skip to content
inphinitPublic

About

A teeny route system for Python, with support for WSGI and http.server (Lib/http/server.py)

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About Teeny.py (under development)

the project is not yet functional, it is just a preparation of the structure to be designed in the best possible way.

Wrappers

Modules that will be used in the project:

Example

app = Teeny(4000)

app.setPublic('public')

@app.action('GET', '/')
def foo():
    print("foo!")


@app.action('ANY', '/test')
def bar():
    print("bar!")


@app.action([ 'GET', 'POST' ], '/what')
def bar():
    print("bar!")


app.action('HEAD', '/sugar', 'foo.py')


@app.handlerCodes([ 404, 405 ]);
def error_page(code):
    print("error page:", code)


app.exec()

About

A teeny route system for Python, with support for WSGI and http.server (Lib/http/server.py)

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages