Skip to content

mkirc/kessel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kessel

What this is

Minimal dependency python wsgi-compatible web framework with the tried and tested fluid-container-inspired name. This is pretty crude, so I decided to go with 'kessel', german for 'cauldron'.

DISCLAIMER

This project is mainly a learning effort and should not be used in any reliability- oder security-critical context.

Features

  • minimal web framework, can be anything you want.

  • token auth with pyJWT

  • modularisation can be achieved with recipes

  • thread-local app context for handling current_user, current_request, etc.

  • small and readable codebase

installation

pip install kessel

usage

WIP

see examples/app.py and examples/run.py

recipes

TODO

see examples/foo/fooController.py

Encoding & Decoding Tokens with RS256 (RSA)

TODO

mkdir test-app && \
openssl genrsa -out test-app/private.pem 2048

Acknowledgements

  • obviously heavily inspired by flask

  • class Headers from headers.py is a modified version of werkzeug's

About

a minimal wsgi framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published