{ "info": { "author": "Mike Lang", "author_email": "mikelang3000@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "Implements a counter whose value decays over time\n\nDecayCounter() objects store a float, which decays over time with the given decay rate.\nDecay rate is expressed as a half-life, ie. after half_life seconds, the value is halved.\nThe decay is automatically accounted for on a get() operation, no background thread or other out-of-band\ntimekeeping is used.\n\nNote that while a set() operation is provided, it is not safe to use in a read-modify-write pattern,\nas you would lose the decay that should have occurred between the read and the write.\nYou should instead use modify() for such operations, which takes a callable that should perform the operation\nand return the result.\n\nIf one of the following libraries is installed, monotonic time will be used by default:\n\tMonotime\n\tMonoclock\n\tmonotonic\nIf you would like to enforce this as a requirement, use the monotonic=True flag.\nConversely, if you would like to force the use of wall clock time.time() even when monotonic is available,\nuse monotonic=False. Note this is probably a bad idea\n(for example, your values will jump up wildly if the system time is changed backwards).", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "UNKNOWN", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "decay", "package_url": "https://pypi.org/project/decay/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/decay/", "project_urls": { "Download": "UNKNOWN", "Homepage": "UNKNOWN" }, "release_url": "https://pypi.org/project/decay/0.0.1421587592/", "requires_dist": null, "requires_python": null, "summary": "Implements a counter whose value decays over time", "version": "0.0.1421587592" }, "last_serial": 1386762, "releases": { "0.0.1421587592": [ { "comment_text": "", "digests": { "md5": "f945d83f01d3981163961ba4d37fcaa9", "sha256": "eca13179e59ade30dcb4a2185d17f2e9cffc2a17e39753b84c070ebaec227e2f" }, "downloads": -1, "filename": "decay-0.0.1421587592.tar.gz", "has_sig": false, "md5_digest": "f945d83f01d3981163961ba4d37fcaa9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1443, "upload_time": "2015-01-18T13:27:51", "url": "https://files.pythonhosted.org/packages/39/b2/6b77ee7fadb83527264feabf68d1b312cc4c460e4d6800a05010dba4f7d7/decay-0.0.1421587592.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f945d83f01d3981163961ba4d37fcaa9", "sha256": "eca13179e59ade30dcb4a2185d17f2e9cffc2a17e39753b84c070ebaec227e2f" }, "downloads": -1, "filename": "decay-0.0.1421587592.tar.gz", "has_sig": false, "md5_digest": "f945d83f01d3981163961ba4d37fcaa9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1443, "upload_time": "2015-01-18T13:27:51", "url": "https://files.pythonhosted.org/packages/39/b2/6b77ee7fadb83527264feabf68d1b312cc4c460e4d6800a05010dba4f7d7/decay-0.0.1421587592.tar.gz" } ] }