Library of various Flask utils that aren't worthy of their own dedicated libs.
Project description
KvCommon-Flask
Library of various Flask utils that aren't worthy of their own dedicated libs.
This library isn't likely to be useful to anyone else; it's just a convenience to save me from copy/pasting between various projects I work on.
Configuration & Env Vars
Env Var | Default | Type | Description |
---|---|---|---|
KVC_FLASK_METRICS_PORT |
9090 |
Int | Port on the server from which metrics can be scraped |
KVC_FLASK_METRICS_ENABLED |
False |
Boolean | Toggles prometheus metrics |
KVC_FLASK_TRACES_ENABLED |
False |
Boolean | Toggles OTLP traces |
Packages/Modules
Package | Description |
---|---|
metrics |
Prometheus Metrics utils & boilerplate |
traces |
OTLP Traces utils & boilerplate |
context |
Convenience utils for manipulating Flask config and flask.g context |
middleware |
Basic middleware class using flask-http-middleware with metrics |
scheduler |
Utils for scheduling jobs on cron-like internvals with Flask-APScheduler and metrics + logging |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
kvcommon_flask-0.0.1.tar.gz
(4.8 kB
view hashes)
Built Distribution
Close
Hashes for kvcommon_flask-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1761ce020ab2a2575d261f624aa78b5a9469d33fd389e60e0a6c5ae4180af162 |
|
MD5 | 7580b57a532233ea1d853de5882c6198 |
|
BLAKE2b-256 | cf1b15d7a4beb3895bbe5e9924acb722bbee1712f36e6b7f846496bff1053af6 |