Skip to content

Instantly share code, notes, and snippets.

chrboehm

Block or report user

Report or block chrboehm

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@chrboehm
chrboehm / statsd_sets.py
Created Aug 24, 2018
Statsd Sets for use with WoLpH/python-statsd.
View statsd_sets.py
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
You can’t perform that action at this time.