{ "info": { "author": "Suenweek", "author_email": "suenweek@protonmail.com", "bugtrack_url": null, "classifiers": [], "description": "# sql2statsd\n\n`sql2statsd` is a CLI utility that queries SQL database and posts results to\n[StatsD](https://github.com/etsy/statsd)\nbased on a provided YAML config file and a job name.\n\n\n## Installation\n\n`virtualenv` recommended.\n\n- From Github:\n ```\n pip install -e git+https://github.com/Suenweek/sql2statsd#egg=sql2statsd\n ```\n\n\n## Usage\n`sql2statsd` is intended to be run as a scheduled task (e.g. a `cron` job).\n\n1. Create a YAML config file based on a config schema provided below.\n2. Run `sql2statsd --config-file ` where:\n - `` is a path to your config.\n - `` is a key in a `config[\"jobs\"]` section.\n\nPassing config file path as a parameter each time is tedious, so you may want\nto specify `SQL2STATSD_CONFIG_FILE` env var instead.\n\n\n## Config schema\n\n```yaml\ndb_servers:\n : # Database server name\n host: \n port: \n user: \n password: \n\nstats_servers:\n : # Stats server name\n host: \n port: \n\njobs:\n : # Job name\n db_server: # Database server name\n db_name: \n stats_server: # Stats server name\n stat: \n query: \n```", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Suenweek/sql2statsd", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "sql2statsd", "package_url": "https://pypi.org/project/sql2statsd/", "platform": "", "project_url": "https://pypi.org/project/sql2statsd/", "project_urls": { "Homepage": "https://github.com/Suenweek/sql2statsd" }, "release_url": "https://pypi.org/project/sql2statsd/0.0.1/", "requires_dist": null, "requires_python": "", "summary": "CLI utility that queries SQL database and posts results to StatsD.", "version": "0.0.1" }, "last_serial": 3709365, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "a5bad5552867c8d690da5bd908491467", "sha256": "4f0d0fc5f8df6048a417a73db6db3c65194525f384bf84dcf0eddc040c5f9322" }, "downloads": -1, "filename": "sql2statsd-0.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a5bad5552867c8d690da5bd908491467", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4028, "upload_time": "2018-03-27T07:04:02", "url": "https://files.pythonhosted.org/packages/62/17/c1eada5910826fa7c028fe9296a956dd0710280bf6fc0518c664d22a8ad7/sql2statsd-0.0.1-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a5bad5552867c8d690da5bd908491467", "sha256": "4f0d0fc5f8df6048a417a73db6db3c65194525f384bf84dcf0eddc040c5f9322" }, "downloads": -1, "filename": "sql2statsd-0.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a5bad5552867c8d690da5bd908491467", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4028, "upload_time": "2018-03-27T07:04:02", "url": "https://files.pythonhosted.org/packages/62/17/c1eada5910826fa7c028fe9296a956dd0710280bf6fc0518c664d22a8ad7/sql2statsd-0.0.1-py2.py3-none-any.whl" } ] }