semvec/pypi-packages huggingface dataset:
django-fever-notifications 0.1.3
Generic models for implement message based features
License: BSD
Keywords: django-fever-notifications

=============================
django-fever-notifications
=============================

.. image:: https://badge.fury.io/py/django-fever-notifications.png
    :target: https://badge.fury.io/py/django-fever-notifications

.. image:: https://travis-ci.org/Feverup/django-fever-notifications.png?branch=master
    :target: https://travis-ci.org/Feverup/django-fever-notifications

Generic models for implement message based features

Documentation
-------------

The full documentation is at https://django-fever-notifications.readthedocs.org.

Quickstart
----------

Install django-fever-notifications::

    pip install django-fever-notifications

Then use it in a project:


.. code-block :: python

    from fevernotifications.models import Notification
    from fevernotifications.shortcuts import create_notification

    # Create a notification
    create_notification(user, title="Hello", message="Hello world!")

    # Query all notifications per user
    Notification.objects.by_target(user)


Features
--------

* TODO

Running Tests
--------------

Does the code actually work?

::

    source <YOURVIRTUALENV>/bin/activate
    (myenv) $ pip install -r requirements-test.txt
    (myenv) $ python runtests.py

Credits
---------

Tools used in rendering this package:

*  Cookiecutter_
*  `cookiecutter-pypackage`_

.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackage




History
-------

0.1.0 (2016-05-03)
++++++++++++++++++

* First release on PyPI.
Flask-Breathalyzer 0.2.2
Flask module for submitting timings and exceptions to Datadog
License: BSD

==================
Flask-Breathalyzer
==================

.. image:: https://api.travis-ci.org/mindflayer/flask-breathalyzer.png?branch=master
    :target: http://travis-ci.org/mindflayer/flask-breathalyzer

.. image:: https://coveralls.io/repos/mindflayer/flask-breathalyzer/badge.png?branch=master
    :target: https://coveralls.io/r/mindflayer/flask-breathalyzer

A Flask module pushing exceptions to Datadog
--------------------------------------------

.. image:: https://raw.githubusercontent.com/mindflayer/flask-breathalyzer/master/Flask-Breathalyzer.png

Features
========
- Pushing exceptions to Datadog;
- Blacklist for `headers` or `data` as list of *XPATH style* strings (you may have some headers you do not want to publish for privacy, or maybe some body fields you do not need to display - e.g.: a base64 blob).

Installation
============
Using pip::

    $ pip install flask_breathalyzer[datadog]

Issues
============
When opening an **Issue**, please add few lines of code as failing test, or -better- open its relative **Pull request** adding this test to our test suite.

Quick example
=============
Let's create a new virtualenv with all we need::

    $ virtualenv example
    $ source example/bin/activate
    $ pip install pytest flask_breathalyzer[datadog]

As second step, we create a test `example.py` file as the following one:

.. code-block:: python

    from flask import Flask
    import datadog

    from flask_breathalyzer import Breathalyzer


    def test_example():

        app = Flask(__name__)

        @app.route("/")
        def boom():
            1/0

        # from http://docs.datadoghq.com/api/
        options = {
            'api_key': 'your-datadog-api-key',
            'app_key': 'your-datadog-app-key'
        }

        ba = Breathalyzer(app, **options)
        response = test_client.get('/')
        assert response.status == '500 INTERNAL SERVER ERROR'
        assert b'<title>500 Internal Server Error</title>' in response.data
        assert response.mimetype == 'text/html'
        assert isinstance(ba.last_event_id, int)  # your exception is now on Datadog with this ID


Let's fire our example test::

    $ py.test example.py