Skip to content

Instantly share code, notes, and snippets.

View jyeray's full-sized avatar

Joaquín Yeray Martín de la Nuez jyeray

View GitHub Profile
@eloraburns
eloraburns / listener.py
Created October 9, 2015 14:33
Statsd listener for debugging stats locally
# From https://wiki.python.org/moin/UdpCommunication modified for Statsd + debugging usage
import datetime
import socket
UDP_IP = "127.0.0.1"
UDP_PORT = 8125
sock = socket.socket(
socket.AF_INET, # Internet
socket.SOCK_DGRAM) # UDP