NamedAtomicLock
===============
Python module for an atomic named interprocess lock which is local to the machine.
This means that this lock works across process boundries, so you can use it to lock objects that multiple processes would use.
NamedAtomicLock works by taking advantage of the fact that POSIX defines mkdir to be an atomic operation. So a directory is used as the name.
All UNIX systems are supported, overhead is light, and the lock is global to the system.
The NamedAtomicLock module provides a class NamedAtomicLock which implements the "lock" interface, with familiar "acquire" and "release" methods.
Documentation
-------------
See http://htmlpreview.github.io/?https://github.com/kata198/NamedAtomicLock/blob/master/doc/NamedAtomicLock.html
Example
-------
A basic usage example
from NamedAtomicLock import NamedAtomicLock
myLock = NamedAtomicLock('myLock')
if myLock.acquire(timeout=15):
doWork()
myLock.release()
Raw data
{
"_id": null,
"home_page": "https://github.com/kata198/NamedAtomicLock",
"name": "NamedAtomicLock",
"maintainer": "",
"docs_url": "https://pythonhosted.org/NamedAtomicLock/",
"requires_python": "",
"maintainer_email": "",
"keywords": "lock,named,atomic,mkdir,posix,acquire,release",
"author": "Tim Savannah",
"author_email": "kata198@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/ae/61/3733fc4c371ece0fa820d8c3186e2d5c7b679bb32f37745508339e8c773e/NamedAtomicLock-1.1.3.tar.gz",
"platform": "",
"description": "NamedAtomicLock\n===============\n\nPython module for an atomic named interprocess lock which is local to the machine.\n\nThis means that this lock works across process boundries, so you can use it to lock objects that multiple processes would use.\n\n\nNamedAtomicLock works by taking advantage of the fact that POSIX defines mkdir to be an atomic operation. So a directory is used as the name.\n\nAll UNIX systems are supported, overhead is light, and the lock is global to the system.\n\n\nThe NamedAtomicLock module provides a class NamedAtomicLock which implements the \"lock\" interface, with familiar \"acquire\" and \"release\" methods.\n\nDocumentation\n-------------\n\nSee http://htmlpreview.github.io/?https://github.com/kata198/NamedAtomicLock/blob/master/doc/NamedAtomicLock.html \n\n\nExample\n-------\n\nA basic usage example\n\n\tfrom NamedAtomicLock import NamedAtomicLock\n\n\n\tmyLock = NamedAtomicLock('myLock')\n\n\n\tif myLock.acquire(timeout=15):\n\n\t\tdoWork()\n\n\t\tmyLock.release()",
"bugtrack_url": null,
"license": "LGPLv3",
"summary": "Python module for an atomic named interprocess lock which is local to the machine.",
"version": "1.1.3",
"split_keywords": [
"lock",
"named",
"atomic",
"mkdir",
"posix",
"acquire",
"release"
],
"urls": [
{
"comment_text": "",
"digests": {
"md5": "887d000d9ec49e5161b104cf37e5ea46",
"sha256": "fe0fd055422ffc16f290625417a953322dd1defe6070cdcd8c65123246237aa9"
},
"downloads": -1,
"filename": "NamedAtomicLock-1.1.3.tar.gz",
"has_sig": false,
"md5_digest": "887d000d9ec49e5161b104cf37e5ea46",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 16536,
"upload_time": "2017-10-12T15:06:27",
"upload_time_iso_8601": "2017-10-12T15:06:27.029664Z",
"url": "https://files.pythonhosted.org/packages/ae/61/3733fc4c371ece0fa820d8c3186e2d5c7b679bb32f37745508339e8c773e/NamedAtomicLock-1.1.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2017-10-12 15:06:27",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "kata198",
"github_project": "NamedAtomicLock",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "namedatomiclock"
}