Skip to content

juztin/flask-restpoints

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask-RestPoints

Flask-RestPoints is an extension to Flask that allows adds a few health check endpoints (ping, time, and status) to the Flask application.

from flask import Flask
from flask_restpoints import RestPoints

app = Flask(__name__)
rest = RestPoints(app)

@rest.status_job(name="PostgreSQL", timeout=5)
def postgresql():
    # Perform a ping/query to Postgres

@rest.status_job
def facebook
    # Ping some Facebook service.

get Flask-RestPoints

Install flask

sudo easy_install Flask-RestPoints

Download the latest release from Python Package Index or clone the repository

About

Flask extension that adds some common health check endpoints (ping, time, status)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages