{ "info": { "author": "Paul Logston", "author_email": "code@logston.me", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "django-distributedlock\n======================\n\nA django app for functions or tasks that needs distributed lock, e.g. for management commands that used in cron jobs\n\nInstalation\n============\n\nInstall with ``pip`` in your environment::\n\n $ pip install django-distributedlock\n\nAdd in your ``settings.py`` in ``INSTALLED_APPS`` ::\n\n INSTALLED_APPS = (\n ...\n 'distributedlock',\n ...\n )\n\ndjango-distributedlock can be work with django cache or a database model, you must to set the client in the variable ``DISTRIBUTEDLOCK_CLIENT``, with the values ``cache`` or ``database`` according your needs.::\n\n DISTRIBUTEDLOCK_CLIENT=\"cache\" # or \"database\"\n\n\nUse\n===\n\nFor register a distrbuted function with decorator::\n\n from distributedlock import distributedlock\n\n @distributedlock()\n def my_task():\n print \"running\"\n\nor you can use the sentence ``with``::\n\n with distributedlock('my_key_task'):\n print 'running'\n\nTests\n=====\n\nOnce installed in your django project::\n\n django-admin.py test distributedlock\n\nNeeds ``gevent`` installed only for tests purpose.\n\nSome ideas were take from https://github.com/snbuback/DistributedLock\n\n\u00a9 2013 Scryent\nLicense BSD\n\nCurrent code @ https://github.com/15five/django-distributedlock\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "distributed lock", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "django-distributedlock", "package_url": "https://pypi.org/project/django-distributedlock/", "platform": "", "project_url": "https://pypi.org/project/django-distributedlock/", "project_urls": null, "release_url": "https://pypi.org/project/django-distributedlock/0.4.0/", "requires_dist": null, "requires_python": "", "summary": "A distributed lock", "version": "0.4.0" }, "last_serial": 4544236, "releases": { "0.2": [ { "comment_text": "", "digests": { "md5": "ce486a28c7c214f44cd0284b626abc04", "sha256": "2bad15f44735c1b4e024dd924e7ff701f97c06724bdd63d2db87be21ea73816f" }, "downloads": -1, "filename": "django-distributedlock-0.2.tar.gz", "has_sig": false, "md5_digest": "ce486a28c7c214f44cd0284b626abc04", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4247, "upload_time": "2014-03-07T21:14:21", "url": "https://files.pythonhosted.org/packages/d7/41/2d0ffcffe2ef60e6f8a8485643c695f4df0aabaf7b322d7dad1bd48db161/django-distributedlock-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "691f739011148debcc7150e439cbf4ca", "sha256": "ae1c30334303e673924e357f745f096e979441f809104dab6b8f670b13faee7a" }, "downloads": -1, "filename": "django-distributedlock-0.2.1.tar.gz", "has_sig": false, "md5_digest": "691f739011148debcc7150e439cbf4ca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4336, "upload_time": "2014-03-13T02:17:29", "url": "https://files.pythonhosted.org/packages/9b/79/3c1ee323bbd31b694ccd458bc2de2319d30103723a73e244ea3423d8ac9e/django-distributedlock-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "ee5d8c0bd1401d78b85a7c249c6cc5bb", "sha256": "be5db7ce510d3b870a91a28e8eef242413d540e0e99934115664e127fdb410bd" }, "downloads": -1, "filename": "django-distributedlock-0.2.2.tar.gz", "has_sig": false, "md5_digest": "ee5d8c0bd1401d78b85a7c249c6cc5bb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4281, "upload_time": "2014-03-13T02:33:29", "url": "https://files.pythonhosted.org/packages/ce/b3/ab9bc382d8b8ea8972c86d5e41a47cb12330fa81e8cff69871a776ed3e04/django-distributedlock-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "b39480803d4288fedd28ddf1233d0c82", "sha256": "11f91f3c66029cb21a446f5e309c47c4e7d50dc6b18ec7dfbfc91e029ce7e500" }, "downloads": -1, "filename": "django-distributedlock-0.2.3.tar.gz", "has_sig": false, "md5_digest": "b39480803d4288fedd28ddf1233d0c82", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4287, "upload_time": "2015-04-17T02:48:34", "url": "https://files.pythonhosted.org/packages/de/da/b40b169f25b523cd2c003c03c8072dbdcc3e05505f093285471a6420ce7f/django-distributedlock-0.2.3.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "6128bdd518c85553c1c6b7d8c5f36b12", "sha256": "a49bc23d0cdf267cf9883d0d1cc482791deac421d3dac16967b85e9320b949d5" }, "downloads": -1, "filename": "django-distributedlock-0.3.0.tar.gz", "has_sig": false, "md5_digest": "6128bdd518c85553c1c6b7d8c5f36b12", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1990, "upload_time": "2016-04-18T20:20:15", "url": "https://files.pythonhosted.org/packages/97/67/562b070a4c614e8177738b61d874df3f1d3cf94fe2efc4708777b6e962a0/django-distributedlock-0.3.0.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "145204e9ac290ae8a049c90d12a2f467", "sha256": "84a349b63d021eca24033e98b582485fe16e0da998d81eab252f2154957c43e1" }, "downloads": -1, "filename": "django-distributedlock-0.3.1.tar.gz", "has_sig": false, "md5_digest": "145204e9ac290ae8a049c90d12a2f467", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5804, "upload_time": "2016-04-19T03:38:55", "url": "https://files.pythonhosted.org/packages/f5/b0/cf0638a14df0fc5ff91cdc4e17ed8c6bd51166e969aaa101fa1d198b7152/django-distributedlock-0.3.1.tar.gz" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "08fb05bd6911dfdbe83e56253f50bca7", "sha256": "2641c342b815b1924b1f7752935cdc9905a8d5e0a1a6657f29f16980be0f7f49" }, "downloads": -1, "filename": "django_distributedlock-0.3.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "08fb05bd6911dfdbe83e56253f50bca7", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7831, "upload_time": "2018-04-20T20:16:18", "url": "https://files.pythonhosted.org/packages/79/6d/6032cb74572cd0cd7132c8385d1465359d4744f38148c7af33d8794d6d86/django_distributedlock-0.3.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "37ac7b2581ab1a83a02b28c888657f01", "sha256": "4ed6cd07d3c7967c0a945f00c847ad79991eb7de7c1fbb8b71b6f02d5c79a776" }, "downloads": -1, "filename": "django-distributedlock-0.3.2.tar.gz", "has_sig": false, "md5_digest": "37ac7b2581ab1a83a02b28c888657f01", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5880, "upload_time": "2016-04-19T04:35:20", "url": "https://files.pythonhosted.org/packages/9f/05/d730295ab9e88449a0175fc3ac038c48bf84147d054c49850a35511e4e83/django-distributedlock-0.3.2.tar.gz" } ], "0.3.3": [ { "comment_text": "", "digests": { "md5": "79bdc963950b806e321b96a8eaa2a7a5", "sha256": "f104b6a440d4f5868500d8438abb63aaaee5b2c47639060c02f484d1ed582932" }, "downloads": -1, "filename": "django_distributedlock-0.3.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "79bdc963950b806e321b96a8eaa2a7a5", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7830, "upload_time": "2018-04-20T20:17:05", "url": "https://files.pythonhosted.org/packages/7d/e3/0fac559a77446d7a07587dd34090b52d7d18f3492cc39b751a0796ab52d2/django_distributedlock-0.3.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "97885e44501b9431948a025c7d548892", "sha256": "3ba1e5e6e87e99405a20165c8f31264c1b0bea48c9465f9a7d374364e10670c8" }, "downloads": -1, "filename": "django-distributedlock-0.3.3.tar.gz", "has_sig": false, "md5_digest": "97885e44501b9431948a025c7d548892", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6259, "upload_time": "2018-04-20T20:17:06", "url": "https://files.pythonhosted.org/packages/c8/f5/b7924cee0c9b60745230689ac8671b4df895f49430b8b66e548105fbff3b/django-distributedlock-0.3.3.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "14164154ba90dbf6b8392ab38d8b3fa3", "sha256": "7dde2caa12d13bcc91512354c2e3eeff6fd21470bd836ee2d9cb68fcbdff762a" }, "downloads": -1, "filename": "django_distributedlock-0.4.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "14164154ba90dbf6b8392ab38d8b3fa3", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8413, "upload_time": "2018-05-03T18:18:11", "url": "https://files.pythonhosted.org/packages/d0/dd/b54937806a0a6773f4a4fc6e347d2db1aeb3c087471ca9089e64c9624cb4/django_distributedlock-0.4.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f8a6f2a3ffa1df81a478352ce7ae3e42", "sha256": "e62c795de63269c2b6798a765f756a102f41b20fcd196ece2015e9cba115677f" }, "downloads": -1, "filename": "django-distributedlock-0.4.0.tar.gz", "has_sig": false, "md5_digest": "f8a6f2a3ffa1df81a478352ce7ae3e42", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6424, "upload_time": "2018-05-03T18:18:12", "url": "https://files.pythonhosted.org/packages/00/2c/82f7d57bad311bb163dff3736c4565eceba0c84667d52484a97fc0587d72/django-distributedlock-0.4.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "14164154ba90dbf6b8392ab38d8b3fa3", "sha256": "7dde2caa12d13bcc91512354c2e3eeff6fd21470bd836ee2d9cb68fcbdff762a" }, "downloads": -1, "filename": "django_distributedlock-0.4.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "14164154ba90dbf6b8392ab38d8b3fa3", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8413, "upload_time": "2018-05-03T18:18:11", "url": "https://files.pythonhosted.org/packages/d0/dd/b54937806a0a6773f4a4fc6e347d2db1aeb3c087471ca9089e64c9624cb4/django_distributedlock-0.4.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f8a6f2a3ffa1df81a478352ce7ae3e42", "sha256": "e62c795de63269c2b6798a765f756a102f41b20fcd196ece2015e9cba115677f" }, "downloads": -1, "filename": "django-distributedlock-0.4.0.tar.gz", "has_sig": false, "md5_digest": "f8a6f2a3ffa1df81a478352ce7ae3e42", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6424, "upload_time": "2018-05-03T18:18:12", "url": "https://files.pythonhosted.org/packages/00/2c/82f7d57bad311bb163dff3736c4565eceba0c84667d52484a97fc0587d72/django-distributedlock-0.4.0.tar.gz" } ] }