{ "info": { "author": "Salton Massally", "author_email": "salton.massally@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "statsd-mock\n============\n\n.. image:: https://travis-ci.org/tarzan0820/statsd-mock.png?branch=master\n :target: https://travis-ci.org/tarzan0820/statsd-mock\n\nBased entirely on - `studio-ousia/gevent-statsd-moc `_ \nwith `python-statsd `_ dependency changed to `pystatsd `_\nand gevent.server.DatagramServer used to handle the server portion\n\nInstallation\n------------\n\n.. code-block:: bash\n\n $ pip install mock-statd\n\n\nBasic Usage\n-----------\n\nIn this sample we use `pystatsd `_ for client library\n\n.. code-block:: python\n\n >>> from statsdmock import StatsdMockServer\n >>> server = StatsdMockServer()\n >>> server.start()\n >>> import statsd\n >>> c = statsd.StatsClient(prefix='bigtag')\n >>> c.gauge('subtag', 10)\n >>> server.wait('bigtag.subtag', n=1)\n >>> data = list(server.metrics['bigtag.subtag'])\n >>> assert data[0] == {'value': '10', 'type': 'gauge', 'rate': 1.0, 'timestamp': None}\n >>> server.stop()\n >>> del server\n\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/tarzan0820/mock-statsd", "keywords": "testing,logging", "license": "Copyright 2013 Studio Ousia\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.", "maintainer": null, "maintainer_email": null, "name": "statsdmock", "package_url": "https://pypi.org/project/statsdmock/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/statsdmock/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/tarzan0820/mock-statsd" }, "release_url": "https://pypi.org/project/statsdmock/0.0.3/", "requires_dist": null, "requires_python": null, "summary": "statsd mock server based on gevent", "version": "0.0.3" }, "last_serial": 1888093, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "60a56e7c6b178f391ad28c1f95ef1a3b", "sha256": "3d26b25a045fbd00031601f278ec2741c827402ec1d086fc7977f792da651370" }, "downloads": -1, "filename": "statsdmock-0.0.1.tar.gz", "has_sig": false, "md5_digest": "60a56e7c6b178f391ad28c1f95ef1a3b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3478, "upload_time": "2016-01-04T14:21:54", "url": "https://files.pythonhosted.org/packages/7f/25/9f2db9faa4929d7c361b81ef538a456a59eee7885e0daa1355d1d64882c9/statsdmock-0.0.1.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "a387584ea84c1d2bcd8a91d14feacacf", "sha256": "8ee935e0b96a31acc145bb8211ca0a116519880b9373098eed0859f23df75c91" }, "downloads": -1, "filename": "statsdmock-0.0.3.tar.gz", "has_sig": false, "md5_digest": "a387584ea84c1d2bcd8a91d14feacacf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3740, "upload_time": "2016-01-04T19:50:53", "url": "https://files.pythonhosted.org/packages/91/6b/1b164bad7b118a5f0117e97ee580445e47acaa457692d052bc77ae4654ab/statsdmock-0.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a387584ea84c1d2bcd8a91d14feacacf", "sha256": "8ee935e0b96a31acc145bb8211ca0a116519880b9373098eed0859f23df75c91" }, "downloads": -1, "filename": "statsdmock-0.0.3.tar.gz", "has_sig": false, "md5_digest": "a387584ea84c1d2bcd8a91d14feacacf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3740, "upload_time": "2016-01-04T19:50:53", "url": "https://files.pythonhosted.org/packages/91/6b/1b164bad7b118a5f0117e97ee580445e47acaa457692d052bc77ae4654ab/statsdmock-0.0.3.tar.gz" } ] }