Metadata-Version: 2.0
Name: librato-bg
Version: 1.0.5
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](https://travis-ci.org/nyaruka/python-librato-bg.svg?branch=master)](https://travis-ci.org/nyaruka/python-librato-bg)
[![Coverage Status](https://coveralls.io/repos/github/nyaruka/python-librato-bg/badge.svg?branch=master)](https://coveralls.io/github/nyaruka/python-librato-bg)

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

Usage
-----

```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()
```


