Metadata-Version: 2.0
Name: librato-bg
Version: 1.0.6
Summary: Enables submitting of Librato events in a background thread
Home-page: https://github.com/nyaruka/python-librato-bg
Author: Nyaruka
Author-email: code@nyaruka.com
License: MIT License
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 3
Requires-Dist: librato-metrics (==0.8.5)
Requires-Dist: six

Librato BG
==========

|Build Status| |Coverage Status| |PyPI Release|

Enables submitting of Librato events in a background thread. Heavily
inspired by segment.io's python library which does the same.

Usage
-----

.. code:: python

    from librato_bg import Client

    # initialize with Librato API tokens
    client = Client(username, token)

    # track as your normally would, params are event, value and source.
    # This is non-blocking, submission will take place in other thread
    client.gauge('user_clicked', 1, 'prod')

    # when exiting, flush to join threads and make sure everything is sent
    client.join()

.. |Build Status| image:: https://travis-ci.org/nyaruka/python-librato-bg.svg?branch=master
   :target: https://travis-ci.org/nyaruka/python-librato-bg
.. |Coverage Status| image:: https://coveralls.io/repos/github/nyaruka/python-librato-bg/badge.svg?branch=master
   :target: https://coveralls.io/github/nyaruka/python-librato-bg
.. |PyPI Release| image:: https://img.shields.io/pypi/v/librato_bg.svg
   :target: https://pypi.python.org/pypi/librato_bg/


