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.1.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

kessel-0.5.1-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kessel-0.5.1.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for kessel-0.5.1.tar.gz
Algorithm Hash digest
SHA256 29e20f885c4a9efd42cc8887dcaa82100a964410ee03c48c7d53d642111cdbad
MD5 c01cc19f48cac09ccb24011ec30adcb9
BLAKE2b-256 da2da5b40a9e1a43d3442d73ba1a7feb03d600e1ebd812fa515c7263ecdfe3c6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kessel-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 20.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for kessel-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 565003ab278cdcc97bea42d947063a5031496c52f2fc06ec0cdd72d12fd294f3
MD5 39c2bf40540086c20bf5bd6958d5a46e
BLAKE2b-256 a68065fae8f507187eb7038e8a6b53b73c7a32bea4f2ebbd8343e93e1b4bf30e

See more details on using hashes here.

Supported by

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