{ "info": { "author": "Lipin Dmitriy", "author_email": "blackwithwhite666@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "License :: OSI Approved :: BSD License", "Operating System :: POSIX", "Programming Language :: Python :: 2.7" ], "description": "=================================================\npystat - simple library for in-memory aggregation\n=================================================\n\nCI status: |cistatus|\n\n.. |cistatus| image:: https://secure.travis-ci.org/blackwithwhite666/pystat.png?branch=master\n\nThis library is a thin python wrapper around counter and timer implementation in https://raw.github.com/armon/statsite\n\nInstalling\n==========\n\npystat can be installed via pypi:\n\n::\n\n pip install pystat\n\n\nBuilding\n========\n\nGet the source:\n\n::\n\n git clone https://github.com/blackwithwhite666/pystat.git\n\n\nCompile extension:\n\n::\n\n python setup.py build_ext --inplace\n\n\n\nUsage\n=====\n\nCounter example:\n\n::\n\n from pystat import Counter\n counter = Counter()\n counter.add()\n assert 1 == int(counter)\n counter.add()\n assert 2 == int(counter)\n counter.add(5)\n assert 7 == int(counter)\n assert 3 == len(counter)\n assert 5.0 == counter.max\n assert 1.0 == counter.min\n assert 2.333.. == counter.mean\n assert 2.309.. == counter.stddev\n\nTimer example:\n\n::\n\n from pystat import Timer\n timer = Timer()\n timer.add(1.0)\n assert 1 == int(timer)\n timer.add(1.0)\n assert 2 == int(timer)\n timer.add(5)\n assert 7 == int(timer)\n assert (0.5, 0.95, 0.99) == timer.quantiles\n assert 5.0 == timer.query(0.99)\n assert 1.0 == timer.query(0.5)\n\n\nRunning the test suite\n======================\n\nUse Tox to run the test suite:\n\n::\n\n tox\n\n\n\nChangelog\n=========\n\n0.2.4\n-----\n\n- Add support for load and dump;\n- Check for overflow in __len__;\n\n0.2.3\n-----\n\n- Support for fluent interface;\n\n0.2.2\n-----\n\n- `PlainCounter` implementation;\n\n0.2.1\n-----\n\n- `Counter` can take some iterable to constructor;\n\n0.2.0\n-----\n\n- Add serialization support for `Counter`;\n- Add union support for `Counter`;\n\n0.1.0 (initial release)\n-----------------------\n\n- Prototype.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/blackwithwhite666/pystat", "keywords": "thrift soa", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "pystat", "package_url": "https://pypi.org/project/pystat/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pystat/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/blackwithwhite666/pystat" }, "release_url": "https://pypi.org/project/pystat/0.2.4/", "requires_dist": null, "requires_python": null, "summary": "Small library for in-memory aggregation.", "version": "0.2.4" }, "last_serial": 937351, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "973635d30211b8bd4f3164abed13db9b", "sha256": "9fc4a09efe99c0aae306e2b27f9c766c4346103d7e121e53c69eb5e9a13a12d8" }, "downloads": -1, "filename": "pystat-0.1.0.tar.gz", "has_sig": false, "md5_digest": "973635d30211b8bd4f3164abed13db9b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 54387, "upload_time": "2013-11-13T07:11:33", "url": "https://files.pythonhosted.org/packages/f3/8f/7d5b2989c8a8790d05557b32d2bb6c3d2222156e27edb3b9469f238a808d/pystat-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "6924c5ee3002e1d8679eae385d811473", "sha256": "d85c15636ca95f2caa7be0690201da6ba9b7b3e423dee09d34e61303da3c7333" }, "downloads": -1, "filename": "pystat-0.2.0.tar.gz", "has_sig": false, "md5_digest": "6924c5ee3002e1d8679eae385d811473", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 58879, "upload_time": "2013-11-21T18:31:33", "url": "https://files.pythonhosted.org/packages/c6/77/93077c6d40d4c3a857890f8671ce59593827bd205210fee3e0559a829017/pystat-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "544f69fb78892049c32b8156d3799487", "sha256": "8131f542d31742afdd99a53958f7c1145b874204326bf05e1d9f9d12e1f7d3e7" }, "downloads": -1, "filename": "pystat-0.2.1.tar.gz", "has_sig": false, "md5_digest": "544f69fb78892049c32b8156d3799487", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 60237, "upload_time": "2013-11-29T10:38:18", "url": "https://files.pythonhosted.org/packages/a2/65/440a41710960c960d7bb4988dbdbbc7eff8664b1cd0b307d5d2f26dbdfee/pystat-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "0f892318cf65dd8c66e8f84d19e85c6e", "sha256": "effa874fcd9ebea3ced3bc4122a349d9b326a03eedcc383e4afba6895bd880fd" }, "downloads": -1, "filename": "pystat-0.2.2.tar.gz", "has_sig": false, "md5_digest": "0f892318cf65dd8c66e8f84d19e85c6e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 79731, "upload_time": "2013-12-02T07:49:11", "url": "https://files.pythonhosted.org/packages/af/0a/c3d46bdfd875a442b0306e3346ef071d809e81dcb3b23ea4fd9a57d9e160/pystat-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "e5794ea04ce86278f756553d196377d6", "sha256": "881465bd99d95741914b2210f6063b3cbea45b807757f0d93d02aae519fc2e92" }, "downloads": -1, "filename": "pystat-0.2.3.tar.gz", "has_sig": false, "md5_digest": "e5794ea04ce86278f756553d196377d6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 79891, "upload_time": "2013-12-02T12:05:31", "url": "https://files.pythonhosted.org/packages/d3/cb/374d01c5df9bc79b0cae8d54f45fd2482e027e3714677c0e294eb7fa735a/pystat-0.2.3.tar.gz" } ], "0.2.4": [ { "comment_text": "", "digests": { "md5": "5237cab82366cab2b59133304b003b71", "sha256": "5c8864bfa2daf28e84cf537b26e4a434ee2edda29209819e563f7ad0f6f9aec2" }, "downloads": -1, "filename": "pystat-0.2.4.tar.gz", "has_sig": false, "md5_digest": "5237cab82366cab2b59133304b003b71", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 80906, "upload_time": "2013-12-06T06:05:34", "url": "https://files.pythonhosted.org/packages/c6/ca/47ab9ddd69c208970c534c1c0c3f640d0f89df5f42ccfefb4685aa775294/pystat-0.2.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5237cab82366cab2b59133304b003b71", "sha256": "5c8864bfa2daf28e84cf537b26e4a434ee2edda29209819e563f7ad0f6f9aec2" }, "downloads": -1, "filename": "pystat-0.2.4.tar.gz", "has_sig": false, "md5_digest": "5237cab82366cab2b59133304b003b71", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 80906, "upload_time": "2013-12-06T06:05:34", "url": "https://files.pythonhosted.org/packages/c6/ca/47ab9ddd69c208970c534c1c0c3f640d0f89df5f42ccfefb4685aa775294/pystat-0.2.4.tar.gz" } ] }