Skip to content

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

Notifications You must be signed in to change notification settings

inphinit/teeny.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages