Skip to content

Files

Latest commit

0fa76ef · Aug 9, 2023

History

History
62 lines (42 loc) · 1.57 KB

README.md

File metadata and controls

62 lines (42 loc) · 1.57 KB

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()