{ "info": { "author": "pjdecoursey@spscommerce.com", "author_email": "webapps@spscommerce.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4" ], "description": "redlock-py - Redis distributed locks in Python\n\nThis python lib implements the Redis-based distributed lock manager algorithm\n[described in this blog post](http://antirez.com/news/77).\n\nTo create a lock manager:\n\n dlm = Redlock([{\"host\": \"localhost\", \"port\": 6379, \"db\": 0}, ])\n\nTo acquire a lock:\n\n my_lock = dlm.lock(\"my_resource_name\",1000)\n\nWhere the resource name is an unique identifier of what you are trying to lock\nand 1000 is the number of milliseconds for the validity time.\n\nThe returned value is `False` if the lock was not acquired (you may try again),\notherwise an namedtuple representing the lock is returned, having three fields:\n\n* validity, an integer representing the number of milliseconds the lock will be valid.\n* resource, the name of the locked resource as specified by the user.\n* key, a random value which is used to safe reclaim the lock.\n\nTo release a lock:\n\n dlm.unlock(my_lock)\n\nIt is possible to setup the number of retries (by default 3) and the retry\ndelay (by default 200 milliseconds) used to acquire the lock.\n\n\n**Disclaimer**: This code implements an algorithm which is currently a proposal,\nit was not formally analyzed. Make sure to understand how it works before using it\nin your production environments.\n\nThe MIT License (MIT)\n\nCopyright (c) 2014 SPS Commerce, Inc.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.", "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/mat128/redlock-py", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "redlockfifo", "package_url": "https://pypi.org/project/redlockfifo/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/redlockfifo/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/mat128/redlock-py" }, "release_url": "https://pypi.org/project/redlockfifo/0.0.1/", "requires_dist": null, "requires_python": null, "summary": "Redis locking mechanism", "version": "0.0.1" }, "last_serial": 1676968, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "228d6e6f182b2ad8fd698b1239999720", "sha256": "32df7c6ecc68bc5740504388b1374cb1b438d3f9ad474496dfa847f3370e2245" }, "downloads": -1, "filename": "redlockfifo-0.0.1.tar.gz", "has_sig": false, "md5_digest": "228d6e6f182b2ad8fd698b1239999720", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7418, "upload_time": "2015-08-14T02:35:36", "url": "https://files.pythonhosted.org/packages/78/b5/284a64f3b3d3b6a5454cd2427c4ef1fff64833449d8695225bf2b56381e7/redlockfifo-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "228d6e6f182b2ad8fd698b1239999720", "sha256": "32df7c6ecc68bc5740504388b1374cb1b438d3f9ad474496dfa847f3370e2245" }, "downloads": -1, "filename": "redlockfifo-0.0.1.tar.gz", "has_sig": false, "md5_digest": "228d6e6f182b2ad8fd698b1239999720", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7418, "upload_time": "2015-08-14T02:35:36", "url": "https://files.pythonhosted.org/packages/78/b5/284a64f3b3d3b6a5454cd2427c4ef1fff64833449d8695225bf2b56381e7/redlockfifo-0.0.1.tar.gz" } ] }