Skip to main content
# README #

A Python client for Telemetron.

## Dependencies

Python 2.6+
urllib3
certifi


## How to use the client

### Sending a counter using _UDP_, to localhost:2013:


from telemetronclient.telemetronclient import TelemetronClient as Client
client = Client(settings={
'app': "myapp",
'prefix': "foo",
'transport': Client.TRANSPORT_UDP,
'host': '127.0.0.1',
'port': 2013})
client.counter("mycounter", 1000)
client.flush()


### Sending a counter using _API_, to _metrics.external.com:443_, with 2 seconds timeout:


from telemetronclient.telemetronclient import TelemetronClient as Client
client = Client(settings={
'host': "metrics.external.com",
'port': 443,
'transport': Client.TRANSPORT_API_SSL,
'token': "2783c376-6c04-11e5-8941-e78df619a7cd",
'app': "myapp",
'prefix': "foo",
'timeout': 2.0})
client.counter("mycounter", 1000)
client.flush()


## How to run tests

pylint --rcfile pylint.rc telemetronclient/
pylint --rcfile pylint.rc tests/
pep8 telemetronclient/
pep8 tests/
nosetests


## Deployment instructions

### Using package:

python setup.py install


### Using pip:

pip install telemetron-client

Release files for telemetron-client 4.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for telemetron-client 4.0.0
File Size Uploaded
telemetron-client-4.0.0.tar.gz 10.1 kB Details

Release files / telemetron-client-4.0.0.tar.gz

Download URL telemetron-client-4.0.0.tar.gz
Size 10.1 kB
Tags Source
SHA-256 checksum
How to use checksums
4f9c5c7ca350c506f2450b47548f1ac8669944707d53c0b698a992ee478194fd
BLAKE2b-256 checksum
How to use checksums
aa25ad5f691c4b640b55a9d404ffdd268fd4af27b47e4bc138bae2caf9e0d407
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

4.0.0 This release

1 release file

3.2.1

1 release file

3.2.0

1 release file

3.1.0

1 release file

3.0.4

1 release file

3.0.3

1 release file

3.0.1

1 release file

2.4.2

1 release file

2.4

1 release file

2.3

1 release file

2.2

1 release file

2.1

1 release file

2.0

1 release file

1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page