Skip to content

Instantly share code, notes, and snippets.

View chrboehm's full-sized avatar

Christoph Böhm chrboehm

View GitHub Profile
@chrboehm
chrboehm / statsd_sets.py
Created August 24, 2018 20:47
Statsd Sets for use with WoLpH/python-statsd.
import statsd
class Sets(statsd.Client):
'''Class to implement a statsd sets message
since python-statsd does not have sets.
A modified copy of https://python-statsd.readthedocs.io/en/latest/_modules/statsd/raw.html#Raw
>>> sets = Sets('test.app')
>>> sets.send('name', 12435)
True