Skip to main content

A Python statsd client

statsd is a friendly front-end to Graphite. This is a Python client for the statsd daemon.

Travis-CI build status Latest release Supported Python versions Wheel Status
Code:

https://github.com/jsocol/pystatsd

License:

MIT; see LICENSE file

Issues:

https://github.com/jsocol/pystatsd/issues

Documentation:

https://statsd.readthedocs.io/

Quickly, to use:

>>> import statsd
>>> c = statsd.StatsClient('localhost', 8125)
>>> c.incr('foo')  # Increment the 'foo' counter.
>>> c.timing('stats.timed', 320)  # Record a 320ms 'stats.timed'.

You can also add a prefix to all your stats:

>>> import statsd
>>> c = statsd.StatsClient('localhost', 8125, prefix='foo')
>>> c.incr('bar')  # Will be 'foo.bar' in statsd/graphite.

Installing

The easiest way to install statsd is with pip!

You can install from PyPI:

$ pip install statsd

Or GitHub:

$ pip install -e git+https://github.com/jsocol/pystatsd#egg=statsd

Or from source:

$ git clone https://github.com/jsocol/pystatsd
$ cd statsd
$ python setup.py install

Docs

There are lots of docs in the docs/ directory and on ReadTheDocs.

Metadata

Release files for statsd 3.3.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 statsd 3.3.0
File Size Uploaded Provenance Actions
statsd-3.3.0.tar.gz 259.0 kB Without provenance Details for statsd-3.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for statsd 3.3.0
File Interpreter ABI Platform Actions
statsd-3.3.0-py2.py3-none-any.whl Python 3, Python 2 none any Details for statsd-3.3.0-py2.py3-none-any.whl

Total release size: 271.0 kB

Release files / statsd-3.3.0.tar.gz

Download URL statsd-3.3.0.tar.gz
Size 259.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e3e6db4c246f7c59003e51c9720a51a7f39a396541cb9b147ff4b14d15b5dd1f
BLAKE2b-256 checksum
How to use checksums
2df248ffc8d0051849e4417e809dc9420e76084c8a62749b3442915402127caa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/2.7

Release files / statsd-3.3.0-py2.py3-none-any.whl

Download URL statsd-3.3.0-py2.py3-none-any.whl
Size 12.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
c610fb80347fca0ef62666d241bce64184bd7cc1efe582f9690e045c25535eaa
BLAKE2b-256 checksum
How to use checksums
4733c824f799128dfcfce2142f18d9bc6c55c46a939f6e4250639134222d99eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/2.7

Security for statsd 3.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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