{ "info": { "author": "@balex", "author_email": "balex@ucdavis.edu", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: POSIX", "Programming Language :: Python :: 2.7", "Topic :: Software Development :: Build Tools" ], "description": "# Zookeeper-Watcher\n\nWatches a designated node in Zookeeper for data or member changes. \nImplements a Watch class which can be used as a decorator to trigger functions when changes are detected on a specified node in Zookeeper.\n\n[![Latest Version](https://pypip.in/version/Zookeeper-Watcher/badge.png)]\n(https://pypi.python.org/pypi/Zookeeper-Watcher/)\n[![Downloads](https://pypip.in/download/Zookeeper-Watcher/badge.png)]\n(https://pypi.python.org/pypi/Zookeeper-Watcher/)\n[![Download format](https://pypip.in/format/Zookeeper-Watcher/badge.png)]\n(https://pypi.python.org/pypi/Zookeeper-Watcher/)\n[![License](https://pypip.in/license/Zookeeper-Watcher/badge.png)]\n(https://pypi.python.org/pypi/Zookeeper-Watcher/)\n\n\n## Supported Platforms\n\n* OSX and Linux.\n* Python 2.7\n\nProbably works with other versions as well.\n\n## Quickstart\n\nInstall:\n```bash\npip install Zookeeper-Watcher\n```\n\nExample:\n```python\nfrom zookeeper_watcher import ZookeeperWatcher\n\n#instantiate the watcher object by passing it the Zookeeper server address and a optional logger.\nwatcher = ZookeperWatcher('zookeeper_host:port') #can receive also a custom logger by adding logger=some_logger.\n\n#start the async connection with the Zookeeper server\nwatcher.start()\n\n#decorate a function that will be triggered once at runtime and on every detected event\n@watcher.Watch('/zookeeper/path/to/the/node/that/we/want/to/watch')\ndef test_function(children, data):\n \"\"\"decorated function that receives a list of children nodes of the given path \n and a list of data objects (dictionaries) that are read from each child node\"\"\"\n print \"list of children nodes\", children\n print \"list of data objects\", data\n\n```\n\n## Changelog\n\n#### 0.1.4\n\n* Fixed some logging bugs.\n\n#### 0.1.3\n\n* Added custom logging.\n\n#### 0.1.2\n\n* Fixed some logging errors.\n\n#### 0.1.1\n\n* Fixed some distribution packaging bug.\n\n#### 0.1.0\n\n* Initial release.", "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/Bogdan-Alexandrescu/", "keywords": "consistent hash cache distributed twitter", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "Distributed-Cache", "package_url": "https://pypi.org/project/Distributed-Cache/", "platform": "any", "project_url": "https://pypi.org/project/Distributed-Cache/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/Bogdan-Alexandrescu/" }, "release_url": "https://pypi.org/project/Distributed-Cache/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "Watches a designated node in Zookeeper for data or member changes and trigger a function when an event is detected.", "version": "0.1.0" }, "last_serial": 1246347, "releases": { "0.1.0": [] }, "urls": [] }