Enables submitting of Librato events in a background thread
Project description
Librato BG
============
[](https://travis-ci.org/nyaruka/python-librato-bg)
[](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()
```
============
[](https://travis-ci.org/nyaruka/python-librato-bg)
[](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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file librato_bg-1.0.5.tar.gz.
File metadata
- Download URL: librato_bg-1.0.5.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e68b2502fd5ed8dcf16232783779ef54c52b18ddaa12e368a78608b446070d5b
|
|
| MD5 |
4aa5cb5ee7959d26236e0fdb4591da8e
|
|
| BLAKE2b-256 |
a8f3db8edacbe5387109da87ee4034de6ef353bf6a310a02e6e8958c3a9cc95c
|
File details
Details for the file librato_bg-1.0.5-py2.py3-none-any.whl.
File metadata
- Download URL: librato_bg-1.0.5-py2.py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2512502aac68157a31b90ca4fb0144c7382408a65a4b3ec8c0703edbb29b1ace
|
|
| MD5 |
f84bc50dc9e90ef7a204ae885016ddc1
|
|
| BLAKE2b-256 |
468123c14347fe3cc27a52193eb66e6d4ccd1d83b990f4d9d9451ef5a5dc38c1
|