Client for Telemetron
Project description
# README #
A Python client for Telemetron.
## Dependencies
Python 2.6+
## How to use the client
### Sending a counter using _UDP_, to localhost:2013:
from telemetronclient import TelemetronClient as Client
client = Client(prefix="foo") # UDP localhost:2013
client.inc("mycounter", 1000)
client.flush()
### Sending a counter using _TCP_, to _metrics.external.com:2014_:
from telemetronclient import TelemetronClient as Client
client = Client(
host="metrics.external.com",
port=2014
socket_type=Client.TCP_SOCKET,
prefix="bar")
client.inc("mycounter", 1000)
client.flush()
## How to run tests
pylint --rcfile pylint.rc telemetronclient/
pep8 telemetronclient/
nosetests
## Deployment instructions
### Using package:
python setup.py install
### Using pip:
pip install telemetron-client
A Python client for Telemetron.
## Dependencies
Python 2.6+
## How to use the client
### Sending a counter using _UDP_, to localhost:2013:
from telemetronclient import TelemetronClient as Client
client = Client(prefix="foo") # UDP localhost:2013
client.inc("mycounter", 1000)
client.flush()
### Sending a counter using _TCP_, to _metrics.external.com:2014_:
from telemetronclient import TelemetronClient as Client
client = Client(
host="metrics.external.com",
port=2014
socket_type=Client.TCP_SOCKET,
prefix="bar")
client.inc("mycounter", 1000)
client.flush()
## How to run tests
pylint --rcfile pylint.rc telemetronclient/
pep8 telemetronclient/
nosetests
## Deployment instructions
### Using package:
python setup.py install
### Using pip:
pip install telemetron-client
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for telemetron-client-3.0.0a1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cee7ca401d8405378e120eae655dc8fd0a6dcdb4bc1f9f9cc922248757813cf1 |
|
MD5 | 0a77abd10d1339f394f06bcf8143d756 |
|
BLAKE2b-256 | f69681df7a9c99e3ad50048e0763c35247394f1184958591567465d8ef3dfaea |