{ "info": { "author": "Globo.com", "author_email": "busca@corp.globo.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python" ], "description": "README\n======\n\nA python library to send application metrics using UDP.\n\n.. image:: https://travis-ci.org/globocom/measures.svg?branch=master\n :target: https://travis-ci.org/globocom/measures\n :alt: Build Status\n\n\nInstallation\n------------\n\n.. code-block:: bash\n\n pip install measures\n\n\nUsage\n-----\n\n* count\n\n.. code-block:: python\n\n from measures import Measure\n measure = Measure('myclient', ('localhost', 1984))\n measure.count('mymetric', dimensions={'name': 'john'})\n\n* time (measure time spent on a given block)\n\n.. code-block:: python\n\n import time\n from measures import Measure\n measure = Measure('myclient', ('localhost', 1984))\n with measure.time('mymetric'):\n # do some slow operation:\n time.sleep(3.14159)\n\n.. code-block:: python\n\n import time\n from measures import Measure\n measure = Measure('myclient', ('localhost', 1984))\n with measure.time('mymetric') as dimensions:\n # do some slow operation:\n time.sleep(1.61803)\n # add any relevant information, if necessary:\n dimensions['relevant_info'] = 'pertinent_info'\n\n\n* send\n\n.. code-block:: python\n\n from measures import Measure\n measure = Measure('myclient', ('localhost', 1984))\n dimensions = {\n 'time': 10.1,\n 'relevant_info': pertinent_info\n }\n measure.send('mymetric', dimensions)\n\n\nContributing\n------------\n\n* Set up your environment\n\n.. code-block:: bash\n\n git clone https://github.com/globocom/measures.git\n cd measures\n mkvirtualenv measures\n pip install -r test_requirements.txt\n\n* Run the tests\n\n.. code-block:: bash\n\n make tests\n\n* Write tests for your new feature or bug fix\n* Write needed code changes\n* Iterate, have fun :)\n* Make a pull request with your changes\n\n\nWho do I talk to?\n-----------------\n\n* File an issue at https://github.com/globocom/measures or contact us at\n busca@corp.globo.com\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/globocom/measures", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "measures", "package_url": "https://pypi.org/project/measures/", "platform": "", "project_url": "https://pypi.org/project/measures/", "project_urls": { "Homepage": "http://github.com/globocom/measures" }, "release_url": "https://pypi.org/project/measures/1.3.0/", "requires_dist": null, "requires_python": "", "summary": "Library for posting metrics to a server", "version": "1.3.0" }, "last_serial": 4879686, "releases": { "1.0.2": [ { "comment_text": "", "digests": { "md5": "07c2b3ab42c30c4efc82e960fee4910f", "sha256": "201f4c1da74734b553936286d2cd6666121607281d2c7a8f273ba960ca9b8700" }, "downloads": -1, "filename": "measures-1.0.2.tar.gz", "has_sig": false, "md5_digest": "07c2b3ab42c30c4efc82e960fee4910f", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 1204, "upload_time": "2014-11-18T19:34:11", "url": "https://files.pythonhosted.org/packages/90/66/d8250c3d58b509fc7dda626fd52ccb9957da8bc106675bcba805589cc5bb/measures-1.0.2.tar.gz" } ], "1.0.7": [ { "comment_text": "", "digests": { "md5": "55727cef2085075681d1a9b9ba478f03", "sha256": "621cb87aead990cb826240d00713895d36477a277ba5c7287c2c37c19baecd88" }, "downloads": -1, "filename": "measures-1.0.7.tar.gz", "has_sig": false, "md5_digest": "55727cef2085075681d1a9b9ba478f03", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1200, "upload_time": "2014-11-19T13:39:03", "url": "https://files.pythonhosted.org/packages/43/15/68051d6a9ee0db692266110498fae6b73bfdc21fae1df6fd16486f61b7ea/measures-1.0.7.tar.gz" } ], "1.0.8": [ { "comment_text": "", "digests": { "md5": "e558ac47302ef80340c59afe5a3bc45c", "sha256": "1e923e322d348a924b40b45bde4d8bb2954372303694f5e5beb941fd8359c43e" }, "downloads": -1, "filename": "measures-1.0.8.tar.gz", "has_sig": false, "md5_digest": "e558ac47302ef80340c59afe5a3bc45c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1691, "upload_time": "2014-11-19T16:14:38", "url": "https://files.pythonhosted.org/packages/b4/df/fd1d050558f3e41f6a0993b89062bb789f0b97178fe484ff5b8bb0a9a9d2/measures-1.0.8.tar.gz" } ], "1.0.9": [ { "comment_text": "", "digests": { "md5": "b088a5fb119276313dcec1c617c24d76", "sha256": "da71c051eeb686397224541a4eb41ba56d64c8e80d57bb642c77ac2345e38fbb" }, "downloads": -1, "filename": "measures-1.0.9.tar.gz", "has_sig": false, "md5_digest": "b088a5fb119276313dcec1c617c24d76", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1778, "upload_time": "2014-11-19T16:36:55", "url": "https://files.pythonhosted.org/packages/16/81/94e23b38214bdb067a0ab6787ae64377504fdd44c4aaf60bf8d2fc01a4fa/measures-1.0.9.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "ac29b4892ce71a71214d3a498d0ceccd", "sha256": "807f2968a42977fdb3417d12365f15a56f9bebf32b55bdc0088d8a7d3c7f8583" }, "downloads": -1, "filename": "measures-1.1.0.tar.gz", "has_sig": false, "md5_digest": "ac29b4892ce71a71214d3a498d0ceccd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2052, "upload_time": "2015-01-21T12:49:26", "url": "https://files.pythonhosted.org/packages/30/47/eacbbea8e7d7282e5cfc82b59b6d9aedb466f92a4083c10386fcec885a6f/measures-1.1.0.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "ba81e31e1031d16cad16d9f75ea39baa", "sha256": "d3bd558d903b36c48f5febafc907d6543b932e515668c71f1a3eee324df9850c" }, "downloads": -1, "filename": "measures-1.2.0.tar.gz", "has_sig": false, "md5_digest": "ba81e31e1031d16cad16d9f75ea39baa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2156, "upload_time": "2016-03-15T20:10:51", "url": "https://files.pythonhosted.org/packages/0e/6d/80acbf51a9f3bfe30e8d43c38311b4036e63b671589120fcaeb1bceb24cb/measures-1.2.0.tar.gz" } ], "1.3.0": [ { "comment_text": "", "digests": { "md5": "c235bbea30703761ef4a4d2425ca847c", "sha256": "ba7297d8ac87fe389c0c64b7067b7b92f4e116a03623ffd0c6fab5e6657c4fff" }, "downloads": -1, "filename": "measures-1.3.0.tar.gz", "has_sig": false, "md5_digest": "c235bbea30703761ef4a4d2425ca847c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2332, "upload_time": "2019-02-28T15:04:27", "url": "https://files.pythonhosted.org/packages/f6/cd/6b4849373a624768134c43306348cc2d5b1c220f12d201f2fda618e99e24/measures-1.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c235bbea30703761ef4a4d2425ca847c", "sha256": "ba7297d8ac87fe389c0c64b7067b7b92f4e116a03623ffd0c6fab5e6657c4fff" }, "downloads": -1, "filename": "measures-1.3.0.tar.gz", "has_sig": false, "md5_digest": "c235bbea30703761ef4a4d2425ca847c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2332, "upload_time": "2019-02-28T15:04:27", "url": "https://files.pythonhosted.org/packages/f6/cd/6b4849373a624768134c43306348cc2d5b1c220f12d201f2fda618e99e24/measures-1.3.0.tar.gz" } ] }