Kobin is a small and statically-typed WSGI micro web framework for Python. This library is a pre-release. Expect missing docs and breaking API changes. Kobin has following features.
- Statically-typed web framework with PEP 0484(Type Hints).
- Lightweight implementations for solving your problems easily.
- Kobin provides Routing, WSGI request and response wrapper, Jinja2 template adapter and several useful utilities.
- Convert URL variables types using Type Hints.
$ pip install kobin
from kobin import Kobin
app = Kobin()
@app.route('/')
def hello() -> str:
return "Hello World"
@app.route('/users/{user_id}')
def hello(user_id: int) -> str:
return "Hello {}!!".format(user_id)
if __name__ == '__main__':
app.run()
Kobin requires the following:
- Python 3.5
- Jinja2
This software is licensed under the MIT License.