semvec/pypi-packages huggingface dataset:
Flask-ApplicationInsights 0.2.6
Microsoft Azure Application Insights integration for Flask.
License: MIT

# flask_applicationinsights

Flask extension for Microsoft Azure Application Insights.

Make your Flask application able to send tracking information to an Application Insights Azure component.

[![Build Status](https://travis-ci.org/gghez/flask_applicationinsights.svg?branch=master)](https://travis-ci.org/gghez/flask_applicationinsights)
[![codecov](https://codecov.io/gh/gghez/flask_applicationinsights/branch/master/graph/badge.svg)](https://codecov.io/gh/gghez/flask_applicationinsights)

## Dependencies

- flask>=1.0.2
- applicationinsights==0.11.6

> If you are encountering locale issues with application insights, please check this hack: https://github.com/Azure/azure-cli-shell/issues/63

## Usage

Retrieve package from pypi:

```
pip install flask_applicationinsights
```

> Instrumentation key can be provided programmatically as well as by environment variable or flask configuration key.
Key name is `APPINSIGHTS_INSTRUMENTATION_KEY`.

### Basic

Will track all requests (succeeded or failed) to your application insight referenced by its instrumentation key.

```python
from flask import Flask
from flask_applicationinsights import ApplicationInsights

app = Flask(__name__)

insight = ApplicationInsights(instrumentation_key='<yours>')
insight.init_app(app)

@app.route('/')
def index():
    return 'HIT'

app.run()
```

### Advanced

You can also add custom properties or measurements to each tracked request by using special decorators.

```python
...

insight = ApplicationInsights(...)
...

@insight.properties
def custom_properties(req: Request, resp: Response):
    return {
        'req_pragma': req.headers.get('Pragma'),
        'resp_charset': resp.charset
    }
```

## Contribution

Not open yet due to initial WIP.
actuariat_python 0.3.573
Helpers for teaching purposes (includes sqllite helpers)
License: MIT
Keywords: actuariat_python


.. _l-README:

README
======

.. image:: https://travis-ci.org/sdpython/actuariat_python.svg?branch=master
    :target: https://travis-ci.org/sdpython/actuariat_python
    :alt: Build status

.. image:: https://ci.appveyor.com/api/projects/status/nelemxw6md6bt95a?svg=true
    :target: https://ci.appveyor.com/project/sdpython/actuariat-python
    :alt: Build Status Windows

.. image:: https://circleci.com/gh/sdpython/actuariat_python/tree/master.svg?style=svg
    :target: https://circleci.com/gh/sdpython/actuariat_python/tree/master

.. image:: https://badge.fury.io/py/actuariat_python.svg
    :target: http://badge.fury.io/py/actuariat_python

.. image:: http://img.shields.io/github/issues/sdpython/actuariat_python.png
    :alt: GitHub Issues
    :target: https://github.com/sdpython/actuariat_python/issues

.. image:: https://badge.waffle.io/sdpython/actuariat_python.png?label=ready&title=Ready
    :alt: Waffle
    :target: https://waffle.io/actuariat_python/actuariat_python

.. image:: https://img.shields.io/badge/license-MIT-blue.svg
    :alt: MIT License
    :target: http://opensource.org/licenses/MIT

.. image:: https://codecov.io/github/sdpython/actuariat_python/coverage.svg?branch=master
    :target: https://codecov.io/github/sdpython/actuariat_python?branch=master

.. image:: http://www.xavierdupre.fr/app/actuariat_python/helpsphinx/_images/nbcov.png
    :target: http://www.xavierdupre.fr/app/actuariat_python/helpsphinx/all_notebooks_coverage.html
    :alt: Notebook Coverage

**Links:**

* `GitHub/actuariat_python <https://github.com/sdpython/actuariat_python/>`_
* `documentation <http://www.xavierdupre.fr/app/actuariat_python/helpsphinx/index.html>`_
* `Blog <http://www.xavierdupre.fr/app/actuariat_python/helpsphinx/blog/main_0000.html#ap-main-0>`_

Description
-----------

Materials for training sessions used at
l'`Institut des Actuaires <http://www.institutdesactuaires.com/gene/main.php>`_.

Contributions
-------------

Started in 2015/02.

.. _l-HISTORY:

=======
History
=======

current - 2018-08-26 - 0.00Mb
=============================

* `10`: replace basemap by cartopy (2018-08-26)
* `11`: replace flake8 by code_style (2018-04-14)
* `9`: écrire la correction de l'examen 2017 (2017-06-15)

0.3.398 - 2017-05-09 - 8.33Mb
=============================

* `8`: remplacer le lien sur la table de mortalité (2017-02-25)
* `7`: fixer le test unitaire sur sur le gerry mandering (2017-02-23)
* `5`: concevoir un énoncé pour un examen (2017-02-23)
* `4`: terminer la correction du gerry mandering (2017-02-23)
* `3`: ajouter une séance sur la manipulation de grosses données avec comme exemple des statistiques d'utilisation de wikipedia (2016-12-27)
* `1`: unit test using matplotlib is failing (2016-06-18)