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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for librato_bg-1.0.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04bdd7d3a0b8a9eb4d9ea8efec7f4567ab0210a071c01343d41fb9ba2a4a3069 |
|
MD5 | 4db1d2ded3f63acd953c9443cce84b72 |
|
BLAKE2b-256 | 67c5047aeb721b46ab25190f6e972aa66334e21c6799e85b34c605d697eeaf72 |