Metadata-Version: 2.1
Name: talisker
Version: 0.21.5
Summary: A common WSGI stack
Home-page: https://github.com/canonical-ols/talisker
Author: Simon Davy
Author-email: simon.davy@canonical.com
Keywords: talisker
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: Topic :: Internet :: WWW/HTTP :: WSGI
Classifier: Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware
Classifier: Topic :: System :: Logging
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: Implementation :: CPython
License-File: LICENSE
License-File: AUTHORS.rst
Requires-Dist: Werkzeug~=1.0; python_version ~= "3.5.0"
Requires-Dist: Werkzeug<3; python_version >= "3.6"
Requires-Dist: statsd~=3.3; python_version ~= "3.5.0"
Requires-Dist: statsd<4; python_version >= "3.6"
Requires-Dist: requests~=2.25; python_version ~= "3.5.0"
Requires-Dist: requests<3.0; python_version > "3.5"
Requires-Dist: contextvars~=2.4; python_version >= "3.5" and python_version < "3.7"
Provides-Extra: asyncio
Requires-Dist: aiocontextvars==0.2.2; (python_version >= "3.5.3" and python_version < "3.7") and extra == "asyncio"
Provides-Extra: celery
Requires-Dist: celery~=4.4; python_version ~= "3.5.0" and extra == "celery"
Requires-Dist: celery>=4; python_version > "3.5" and extra == "celery"
Provides-Extra: dev
Requires-Dist: logging_tree>=1.9; extra == "dev"
Requires-Dist: pygments>=2.11; extra == "dev"
Requires-Dist: psutil>=5.9; extra == "dev"
Requires-Dist: objgraph>=3.5; extra == "dev"
Provides-Extra: django
Requires-Dist: django~=2.2; python_version ~= "3.5.0" and extra == "django"
Requires-Dist: django<5; python_version > "3.5" and extra == "django"
Provides-Extra: flask
Requires-Dist: flask~=1.1; python_version ~= "3.5.0" and extra == "flask"
Requires-Dist: flask<3; python_version > "3.5" and extra == "flask"
Requires-Dist: blinker~=1.5; python_version ~= "3.5.0" and extra == "flask"
Requires-Dist: blinker<2; python_version > "3.5" and extra == "flask"
Provides-Extra: gevent
Requires-Dist: gevent>=20.9.0; extra == "gevent"
Provides-Extra: gunicorn
Requires-Dist: gunicorn>=19.7.0; python_version > "3.6" and extra == "gunicorn"
Requires-Dist: gunicorn<21.0,>=19.7.0; (python_version >= "3.5" and python_version < "3.8") and extra == "gunicorn"
Provides-Extra: pg
Requires-Dist: sqlparse>=0.4.2; extra == "pg"
Requires-Dist: psycopg2<3.0,>=2.8; extra == "pg"
Provides-Extra: prometheus
Requires-Dist: prometheus-client~=0.7.0; python_version ~= "3.5.0" and extra == "prometheus"
Requires-Dist: prometheus-client<0.8; python_version > "3.5" and extra == "prometheus"
Provides-Extra: raven
Requires-Dist: raven>=6.4.0; extra == "raven"


===========================================
Talisker - an opinionated WSGI app platform
===========================================

.. image:: https://img.shields.io/pypi/v/talisker.svg
    :target: https://pypi.python.org/pypi/talisker

.. image:: https://img.shields.io/travis/canonical-ols/talisker.svg
    :target: https://travis-ci.org/canonical-ols/talisker

.. image:: https://readthedocs.org/projects/talisker/badge/?version=latest
    :target: https://readthedocs.org/projects/talisker/?badge=latest
    :alt: Documentation Status

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.x, 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
