Python Statsd Client
====================
> :construction: WIP :construction:
This is an implementation of a [Statsd](https://github.com/statsd/statsd) client for Python.
For usage see [documentation](./docs/source/docs.rst).
Motivation
----------
I was looking for a generic Statsd client with tags support to interact with various statsd servers for an application that I distribute but don't operate, so there could be high variability in the statsd implementations used (I know one uses Telegraf and InfluxDB and one Datadog and they both have different tag formats).
- [`pystatsd`](https://statsd.readthedocs.io/en/v3.3/index.html) exists and works, but it [intentionally does not support tags](https://statsd.readthedocs.io/en/v3.3/tags.html).
- The docs point to [an alternative](https://pypi.org/project/statsd-tags/) supporting tags, but at the time of writing the repository leads to a 404 for me.
- There a are a few more available on PyPi that likely work, but most of the ones I've checked haven't been updated in a while, are not documented and don't support tags.
- [`datadogpy`](https://datadogpy.readthedocs.io/en/latest/) could be a solid solution, but I'd rather avoind pulling the full Datadog client library in projects where I don't use datadog. It also exposes some non standard metric types, and while I can always not use them I'd prefer a generic solution (ignoring tags which, while not standardized, are supported by most statsd servers).
Development
-----------
- All development dependencies are defined in [requirements-dev.txt](./requirements-dev.txt).
- All tests and linting steps are defined in [tox.ini](./tox.ini), you can run the all the checks with `tox`.
- Code is expected to be formatted with `black` and `isort`, you can run the formatters with `tox -e fmt`.
Raw data
{
"_id": null,
"home_page": "https://github.com/lirsacc/statsd_client_python",
"name": "statsd-python",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": "",
"keywords": "statsd metrics",
"author": "Charles Lirsac",
"author_email": "c.lirsac@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/d4/c4/9f8726660c7a83c97cf289dfadcf513e90555f90caa3d2e772e65fb0af2b/statsd_python-0.6.1.tar.gz",
"platform": null,
"description": "\nPython Statsd Client\n====================\n\n> :construction: WIP :construction:\n\nThis is an implementation of a [Statsd](https://github.com/statsd/statsd) client for Python.\n\nFor usage see [documentation](./docs/source/docs.rst).\n\nMotivation\n----------\n\nI was looking for a generic Statsd client with tags support to interact with various statsd servers for an application that I distribute but don't operate, so there could be high variability in the statsd implementations used (I know one uses Telegraf and InfluxDB and one Datadog and they both have different tag formats).\n\n- [`pystatsd`](https://statsd.readthedocs.io/en/v3.3/index.html) exists and works, but it [intentionally does not support tags](https://statsd.readthedocs.io/en/v3.3/tags.html).\n- The docs point to [an alternative](https://pypi.org/project/statsd-tags/) supporting tags, but at the time of writing the repository leads to a 404 for me.\n- There a are a few more available on PyPi that likely work, but most of the ones I've checked haven't been updated in a while, are not documented and don't support tags.\n- [`datadogpy`](https://datadogpy.readthedocs.io/en/latest/) could be a solid solution, but I'd rather avoind pulling the full Datadog client library in projects where I don't use datadog. It also exposes some non standard metric types, and while I can always not use them I'd prefer a generic solution (ignoring tags which, while not standardized, are supported by most statsd servers).\n\nDevelopment\n-----------\n\n- All development dependencies are defined in [requirements-dev.txt](./requirements-dev.txt).\n- All tests and linting steps are defined in [tox.ini](./tox.ini), you can run the all the checks with `tox`.\n- Code is expected to be formatted with `black` and `isort`, you can run the formatters with `tox -e fmt`.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "",
"version": "0.6.1",
"project_urls": {
"Bug Reports": "https://github.com/lirsacc/statsd_client_python/issues",
"Homepage": "https://github.com/lirsacc/statsd_client_python",
"Source": "https://github.com/lirsacc/statsd_client_python"
},
"split_keywords": [
"statsd",
"metrics"
],
"urls": [
{
"comment_text": ".pypirc",
"digests": {
"blake2b_256": "9cee4987147e502885f37f9b9a91578dac640f83e22e89ed1765d868b6b45408",
"md5": "f53ed66a066784a915c81210c0ec128b",
"sha256": "30f84925a7c71792d56f738c5186c142e40ed5274b4257fb9b1e5d59708a49bd"
},
"downloads": -1,
"filename": "statsd_python-0.6.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "f53ed66a066784a915c81210c0ec128b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 10990,
"upload_time": "2023-06-13T20:17:39",
"upload_time_iso_8601": "2023-06-13T20:17:39.438057Z",
"url": "https://files.pythonhosted.org/packages/9c/ee/4987147e502885f37f9b9a91578dac640f83e22e89ed1765d868b6b45408/statsd_python-0.6.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": ".pypirc",
"digests": {
"blake2b_256": "d4c49f8726660c7a83c97cf289dfadcf513e90555f90caa3d2e772e65fb0af2b",
"md5": "55fe7916f050a85fd69b0de768ab52a1",
"sha256": "aae1e87565745ac8f1ae5ffa3286648c5c4c8db6c65144b56165bf857612d40d"
},
"downloads": -1,
"filename": "statsd_python-0.6.1.tar.gz",
"has_sig": false,
"md5_digest": "55fe7916f050a85fd69b0de768ab52a1",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 515563,
"upload_time": "2023-06-13T20:17:41",
"upload_time_iso_8601": "2023-06-13T20:17:41.264793Z",
"url": "https://files.pythonhosted.org/packages/d4/c4/9f8726660c7a83c97cf289dfadcf513e90555f90caa3d2e772e65fb0af2b/statsd_python-0.6.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-06-13 20:17:41",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "lirsacc",
"github_project": "statsd_client_python",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"tox": true,
"lcname": "statsd-python"
}