Skip to main content

A common WSGI stack

Project description

https://img.shields.io/pypi/v/talisker.svg https://img.shields.io/travis/canonical-ols/talisker.svg Documentation Status Python code quality (LGTM) LGTM alerts

Talisker is an enhanced runtime for your WSGI application that aims to provide a common operational platform for your python microservices.

It integrates with many standard python libraries to give you out-of-the-box logging, metrics, error reporting, status urls and more.

Python version support

Talisker 0.20.0 was the last to support Python 2.7. Talisker version >=0.21.0 only supports Python 3.5, 3.6, 3.8 and 3.10, as they come with Ubuntu LTS releases.

Quick Start

Simply install Talisker with Gunicorn via pip:

pip install talisker[gunicorn]

And then run your WSGI app with Talisker (as if it was regular gunicorn).:

talisker.gunicorn app:wsgi -c config.py ...

This gives you 80% of the benefits of Talisker: structured logging, metrics, sentry error handling, standardised status endpoints and more.

Note: right now, Talisker has extensive support for running with Gunicorn, with more WSGI server support planned.

Elevator Pitch

Talisker integrates and configures standard python libraries into a single tool, useful in both development and production. It provides:

  • structured logging for stdlib logging module (with grok filter)

  • gunicorn as a wsgi runner

  • request id tracing

  • standard status endpoints

  • statsd/prometheus metrics for incoming/outgoing http requests and more.

  • deep sentry integration

It also optionally supports the same level of logging/metrics/sentry integration for:

  • celery workers

  • general python scripts, like cron jobs or management tasks.

Talisker is opinionated, and designed to be simple to use. As such, it is not currently very configurable. However, PR’s are very welcome!

For more information, see The Documentation, which should be found at:

https://talisker.readthedocs.io

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

talisker-0.21.3.tar.gz (66.2 kB view details)

Uploaded Source

Built Distribution

talisker-0.21.3-py3-none-any.whl (74.7 kB view details)

Uploaded Python 3

File details

Details for the file talisker-0.21.3.tar.gz.

File metadata

  • Download URL: talisker-0.21.3.tar.gz
  • Upload date:
  • Size: 66.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for talisker-0.21.3.tar.gz
Algorithm Hash digest
SHA256 162310568d31ccbb25f0d453a67d2ba9946ec607da40886709e7d0297a004122
MD5 10b33778914c42bdd3221040da7075fd
BLAKE2b-256 d282ed815d6028362e541dcc9bed90163598668bbddea6337bf5e0f282c18c1c

See more details on using hashes here.

File details

Details for the file talisker-0.21.3-py3-none-any.whl.

File metadata

  • Download URL: talisker-0.21.3-py3-none-any.whl
  • Upload date:
  • Size: 74.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for talisker-0.21.3-py3-none-any.whl
Algorithm Hash digest
SHA256 df84a6a0a6c1ce354e783fedf662aee00d5cd85fa27a72810ad3a935d143e7b6
MD5 9391942c0642447ae6e3c030f90a27d1
BLAKE2b-256 32e4261219341c379e2720ee067b089dc6cb3ecf91cde188923935418c3d5913

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