File: stats.py

package info (click to toggle)
python-molotov 2.7-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 8,268 kB
  • sloc: python: 4,121; makefile: 60
file content (9 lines) | stat: -rw-r--r-- 235 bytes parent folder | download
1
2
3
4
5
6
7
8
9
from urllib.parse import urlparse

from aiodogstatsd import Client


def get_statsd_client(address="udp://127.0.0.1:8125", **kw):
    print(address)
    res = urlparse(address)
    return Client(host=res.hostname, port=res.port, **kw)