Adds some common health check endpoints (ping, time, status)
Project description
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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file Flask-RestPoints-0.0.8.tar.gz.
File metadata
- Download URL: Flask-RestPoints-0.0.8.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
caf1ba36be8aeea226f28608bf822987e5470b96ad2907d341ed843192e79f9d
|
|
| MD5 |
06a373cf9c6a8904ee8bb2a7e2a629cf
|
|
| BLAKE2b-256 |
74c912461ec7f8ead8945279889eb28ef58e4403305bfb80c6f7660799146b27
|
File details
Details for the file Flask_RestPoints-0.0.8-py3-none-any.whl.
File metadata
- Download URL: Flask_RestPoints-0.0.8-py3-none-any.whl
- Upload date:
- Size: 12.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f46fa412cbd6c73f6321ef8c11c5e550b625e56c6a0bb8bbc92cdaada140070
|
|
| MD5 |
18dc03c34ae22d4bbcf676bd7a0cc2bd
|
|
| BLAKE2b-256 |
7bfeade3a27ab46667d0d52b007aabbd107f068c93459f8ff2fa220cf354adb0
|