Skip to main content

a minimal wsgi framework

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kessel-0.5.2.tar.gz (17.4 kB view details)

Uploaded Source

Built Distribution

kessel-0.5.2-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

Details for the file kessel-0.5.2.tar.gz.

File metadata

  • Download URL: kessel-0.5.2.tar.gz
  • Upload date:
  • Size: 17.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for kessel-0.5.2.tar.gz
Algorithm Hash digest
SHA256 e30a4833ee7a44407e7a41124c94cfa36b664bfa71e7f1159831ab6682be5984
MD5 d90bfd7195b3ec7cca445e36ca26c7a7
BLAKE2b-256 c832371663c61ba2b88142ba1023f8c2641dba4bb2af993888df80860ec2ae9b

See more details on using hashes here.

File details

Details for the file kessel-0.5.2-py3-none-any.whl.

File metadata

  • Download URL: kessel-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 19.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for kessel-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bece3a9cbbf4741e3402a9c5bfee72dff4de0e0656d58fdfb3a6c2103ba6d844
MD5 40e38ea9cd75824e8b754a7da3e06781
BLAKE2b-256 b27cdacb4b5ce00c84f0e8bbcf01d9695db5ce43745287b5feef27c9b91be246

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page