Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

librato_bg-1.0.5-py2.py3-none-any.whl (5.3 kB view details)

Uploaded Python 2Python 3

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

Hashes for librato_bg-1.0.5.tar.gz
Algorithm Hash digest
SHA256 e68b2502fd5ed8dcf16232783779ef54c52b18ddaa12e368a78608b446070d5b
MD5 4aa5cb5ee7959d26236e0fdb4591da8e
BLAKE2b-256 a8f3db8edacbe5387109da87ee4034de6ef353bf6a310a02e6e8958c3a9cc95c

See more details on using hashes here.

File details

Details for the file librato_bg-1.0.5-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for librato_bg-1.0.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2512502aac68157a31b90ca4fb0144c7382408a65a4b3ec8c0703edbb29b1ace
MD5 f84bc50dc9e90ef7a204ae885016ddc1
BLAKE2b-256 468123c14347fe3cc27a52193eb66e6d4ccd1d83b990f4d9d9451ef5a5dc38c1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page