statsd


Namestatsd JSON
Version 4.0.1 PyPI version JSON
download
home_page
SummaryA simple statsd client.
upload_time2022-11-06 14:17:36
maintainer
docs_urlNone
author
requires_python
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ======================
A Python statsd client
======================

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

.. image:: https://github.com/jsocol/pystatsd/actions/workflows/ci.yml/badge.svg
   :target: https://github.com/jsocol/pystatsd/actions/workflows/ci.yml
   :alt: Latest CI status

.. image:: https://img.shields.io/pypi/v/statsd.svg
   :target: https://pypi.python.org/pypi/statsd/
   :alt: Latest release

.. image:: https://img.shields.io/pypi/pyversions/statsd.svg
   :target: https://pypi.python.org/pypi/statsd/
   :alt: Supported Python versions

.. image:: https://img.shields.io/pypi/wheel/statsd.svg
   :target: https://pypi.python.org/pypi/statsd/
   :alt: 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:

.. code-block:: python

    >>> 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:

.. code-block:: python

    >>> 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 pystatsd
    $ python setup.py install


Docs
====

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


.. _statsd: https://github.com/etsy/statsd
.. _Graphite: https://graphite.readthedocs.io/
.. _ReadTheDocs: https://statsd.readthedocs.io/en/latest/index.html

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "statsd",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "",
    "author_email": "James Socol <me@jamessocol.com>",
    "download_url": "https://files.pythonhosted.org/packages/27/29/05e9f50946f4cf2ed182726c60d9c0ae523bb3f180588c574dd9746de557/statsd-4.0.1.tar.gz",
    "platform": null,
    "description": "======================\nA Python statsd client\n======================\n\nstatsd_ is a friendly front-end to Graphite_. This is a Python client\nfor the statsd daemon.\n\n.. image:: https://github.com/jsocol/pystatsd/actions/workflows/ci.yml/badge.svg\n   :target: https://github.com/jsocol/pystatsd/actions/workflows/ci.yml\n   :alt: Latest CI status\n\n.. image:: https://img.shields.io/pypi/v/statsd.svg\n   :target: https://pypi.python.org/pypi/statsd/\n   :alt: Latest release\n\n.. image:: https://img.shields.io/pypi/pyversions/statsd.svg\n   :target: https://pypi.python.org/pypi/statsd/\n   :alt: Supported Python versions\n\n.. image:: https://img.shields.io/pypi/wheel/statsd.svg\n   :target: https://pypi.python.org/pypi/statsd/\n   :alt: Wheel Status\n\n:Code:          https://github.com/jsocol/pystatsd\n:License:       MIT; see LICENSE file\n:Issues:        https://github.com/jsocol/pystatsd/issues\n:Documentation: https://statsd.readthedocs.io/\n\nQuickly, to use:\n\n.. code-block:: python\n\n    >>> import statsd\n    >>> c = statsd.StatsClient('localhost', 8125)\n    >>> c.incr('foo')  # Increment the 'foo' counter.\n    >>> c.timing('stats.timed', 320)  # Record a 320ms 'stats.timed'.\n\nYou can also add a prefix to all your stats:\n\n.. code-block:: python\n\n    >>> import statsd\n    >>> c = statsd.StatsClient('localhost', 8125, prefix='foo')\n    >>> c.incr('bar')  # Will be 'foo.bar' in statsd/graphite.\n\n\nInstalling\n==========\n\nThe easiest way to install statsd is with pip!\n\nYou can install from PyPI::\n\n    $ pip install statsd\n\nOr GitHub::\n\n    $ pip install -e git+https://github.com/jsocol/pystatsd#egg=statsd\n\nOr from source::\n\n    $ git clone https://github.com/jsocol/pystatsd\n    $ cd pystatsd\n    $ python setup.py install\n\n\nDocs\n====\n\nThere are lots of docs in the ``docs/`` directory and on ReadTheDocs_.\n\n\n.. _statsd: https://github.com/etsy/statsd\n.. _Graphite: https://graphite.readthedocs.io/\n.. _ReadTheDocs: https://statsd.readthedocs.io/en/latest/index.html\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A simple statsd client.",
    "version": "4.0.1",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "41a8401971f130ec813dcf216a32ab79",
                "sha256": "c2676519927f7afade3723aca9ca8ea986ef5b059556a980a867721ca69df093"
            },
            "downloads": -1,
            "filename": "statsd-4.0.1-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "41a8401971f130ec813dcf216a32ab79",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 13118,
            "upload_time": "2022-11-06T14:17:34",
            "upload_time_iso_8601": "2022-11-06T14:17:34.258347Z",
            "url": "https://files.pythonhosted.org/packages/f4/d0/c9543b52c067a390ae6ae632d7fd1b97a35cdc8d69d40c0b7d334b326410/statsd-4.0.1-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "33f9f58c5687cd87977e8b27f5d60e42",
                "sha256": "99763da81bfea8daf6b3d22d11aaccb01a8d0f52ea521daab37e758a4ca7d128"
            },
            "downloads": -1,
            "filename": "statsd-4.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "33f9f58c5687cd87977e8b27f5d60e42",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 27814,
            "upload_time": "2022-11-06T14:17:36",
            "upload_time_iso_8601": "2022-11-06T14:17:36.194012Z",
            "url": "https://files.pythonhosted.org/packages/27/29/05e9f50946f4cf2ed182726c60d9c0ae523bb3f180588c574dd9746de557/statsd-4.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-11-06 14:17:36",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "statsd"
}
        
Elapsed time: 0.04510s