Skip to main content

A common utility framework for web microservices

Project description

mworks

The goal of this project is to remove some boilerplate and add few standard routes to flask applications.

Usage

Add common routes to the flask application:

from mworks import CommonRoutes
from flask import Flask

app = Flask(__name__)
mworks = CommonRoutes(app)

Features

CommonRoutes has the following endpoints implemented:

  • /healthz - Always returns HTTP 200, useful for healthchecks
  • /varz - Get variables for service monitoring. Customizable.
  • /docz - Read README.md from the application and render it.
  • /logz - Render logs from the application in the browser.

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

mworks-1.0.1.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

mworks-1.0.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file mworks-1.0.1.tar.gz.

File metadata

  • Download URL: mworks-1.0.1.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.7

File hashes

Hashes for mworks-1.0.1.tar.gz
Algorithm Hash digest
SHA256 be6ca2198a867e9f1b1f7f96b640e9a73493e4fc56bacd3a5dee2ef212c14130
MD5 7555342e60aa8a1d0ea028d71a2a957a
BLAKE2b-256 81a8b85a00570ca946125aaf979dfa4e83ea1d19075a1c155f0f9d7df64f1120

See more details on using hashes here.

File details

Details for the file mworks-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: mworks-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.7

File hashes

Hashes for mworks-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 416c3775b9f6383f67ddaec31d190ba0af25f79a4369cf58c0bb7edde622d06e
MD5 26c4c066aa3978fbac8d5ecb08a3ce66
BLAKE2b-256 6be07f8edce3f3addf109d1fe4c1c6773f9af1bdb997274234a8a57fb28b067e

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