{ "info": { "author": "Johan Rydberg", "author_email": "johan.rydberg@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# Glock - a Clock abstraction for gevent #\n\nMost likely your application is in some way working with the concept\nof time. It can be timeouts, it can be tasks that should be executed\nwithin regular intervals.\n\nGlock (Gevent cLOCK) tries to encapsulate time-related functionality\ninto a simple *Clock* class. Also provided is a mock Clock class\nallowing deterministic testing.\n\nUsage:\n\n from glock.clock import Clock\n\n c = Clock()\n c.call_later(1, fn)\n\n\nAPI:\n\nThe `call_later(seconds, fn, *args, **kw)` method calls `fn` *seconds*\nfrom now. A `DelayedCall` instance is returned that can be used to \nreschedule the call (using `reset`) or cancel it (using `cancel`).\n\nThe clock also have a `sleep` method that acts just like\n`gevent.sleep`. To read out the current time, use the `time` method.\n\nThe `MockClock` method also has an `advance` method that is used to\nadvance time in a controlled manner.\n", "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/jrydberg/glock", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "glock", "package_url": "https://pypi.org/project/glock/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/glock/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/jrydberg/glock" }, "release_url": "https://pypi.org/project/glock/0.1/", "requires_dist": null, "requires_python": null, "summary": "Abstraction of time to ease testing", "version": "0.1" }, "last_serial": 792515, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "1f91362ad4eb23f265ecc2466293b12a", "sha256": "b541a9d4229dcbe9ce5a7fec4e3a0ee032fc4ebda4bfdbe9c9c53c9f07dd649e" }, "downloads": -1, "filename": "glock-0.1.tar.gz", "has_sig": false, "md5_digest": "1f91362ad4eb23f265ecc2466293b12a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3659, "upload_time": "2012-12-18T19:02:02", "url": "https://files.pythonhosted.org/packages/51/9d/280890d0fa0dd39310f5753bce4245e60489bad8591c7c158329d1329d87/glock-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1f91362ad4eb23f265ecc2466293b12a", "sha256": "b541a9d4229dcbe9ce5a7fec4e3a0ee032fc4ebda4bfdbe9c9c53c9f07dd649e" }, "downloads": -1, "filename": "glock-0.1.tar.gz", "has_sig": false, "md5_digest": "1f91362ad4eb23f265ecc2466293b12a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3659, "upload_time": "2012-12-18T19:02:02", "url": "https://files.pythonhosted.org/packages/51/9d/280890d0fa0dd39310f5753bce4245e60489bad8591c7c158329d1329d87/glock-0.1.tar.gz" } ] }