Enables submitting of Librato events in a background thread
Project description
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()
```
============
[![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()
```
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
librato_bg-1.0.5.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for librato_bg-1.0.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2512502aac68157a31b90ca4fb0144c7382408a65a4b3ec8c0703edbb29b1ace |
|
MD5 | f84bc50dc9e90ef7a204ae885016ddc1 |
|
BLAKE2b-256 | 468123c14347fe3cc27a52193eb66e6d4ccd1d83b990f4d9d9451ef5a5dc38c1 |