Skip to main content

flask-keepincheck

Flask extension that implements healthchecks for application's upstream dependencies

Usage

from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_keepincheck import HealthCheck

app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = ''
db = SQLAlchemy(app)
healthcheck = HealthCheck()
healthcheck.add_db_check(app=app, db=db)

class User(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    username = db.Column(db.String(80), unique=True, nullable=False)
    email = db.Column(db.String(120), unique=True, nullable=False)

    def __repr__(self):
        return '<User %r>' % self.username

@app.route('/')
def hello_world():
    return 'Hello, World!'

After this your db's healthcheck can be found at /dbhealth

Release files for Flask-Keepincheck 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Flask-Keepincheck 0.1
File Size Uploaded
Flask-Keepincheck-0.1.tar.gz 2.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Flask-Keepincheck 0.1
File Interpreter ABI Platform
Flask_Keepincheck-0.1-py3-none-any.whl Python 3 none any Details

Total release size: 5.1 kB

Release files / Flask-Keepincheck-0.1.tar.gz

Download URL Flask-Keepincheck-0.1.tar.gz
Size 2.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9887b5cb4adc2e291710912475dd9aef254f6cce628fc1a043c6d1c369a48f4a
BLAKE2b-256 checksum
How to use checksums
477c4cc1053c26389e87066f225fb173ee6fbb910b67dc12812562fea8d1c3af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.4

Release files / Flask_Keepincheck-0.1-py3-none-any.whl

Download URL Flask_Keepincheck-0.1-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
427148ee574667e6854003c000814f170e448d7f2d379149c2a43e0efa96a4bf
BLAKE2b-256 checksum
How to use checksums
d56a4ab381faea05421fb7ebecb30e8719d2cc738ebdd9bfe203494666415886
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.4

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page