{ "info": { "author": "Carlos de Alfonso", "author_email": "caralla@upv.es", "bugtrack_url": null, "classifiers": [], "description": "This is a class that tries to limit the number of multiple simultaneous executions of a python script, on a local computer. It works by creating folders (using a pattern) under a folder. If the folder is successfully created, the execution gains the lock. Otherwise the script waits up to a configurable time to try to create the folder.\n\nExample:\n\nfrom lockdir import LockDir\nlock = lockdir.LockDir(parallelruns=5, secondswait=300, lockdir=\"/tmp/lockdir.lock\")\nif not lock.acquire_lock():\n print \"Error acquiring lock\"\n sys.exit(1)\n# do the job\nlock.clean_lock()", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://www.grycap.upv.es", "keywords": null, "license": "MIT License", "maintainer": null, "maintainer_email": null, "name": "lockdir", "package_url": "https://pypi.org/project/lockdir/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/lockdir/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://www.grycap.upv.es" }, "release_url": "https://pypi.org/project/lockdir/0.11/", "requires_dist": null, "requires_python": null, "summary": "Lock class based on the creation of directories in a folder", "version": "0.11" }, "last_serial": 1300914, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "f9760ae80b875456966ce313884dbcee", "sha256": "b1e9e743df0e554b239ada9f51322f8550441cb2ec91618b69473f8d331cb3d5" }, "downloads": -1, "filename": "lockdir-0.1.tar.gz", "has_sig": false, "md5_digest": "f9760ae80b875456966ce313884dbcee", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1926, "upload_time": "2014-11-05T16:00:57", "url": "https://files.pythonhosted.org/packages/a6/0f/02a8beea9003e8f61c8073b8bc99c6afdeedde3ae08aed250d5bd85691cc/lockdir-0.1.tar.gz" } ], "0.11": [ { "comment_text": "", "digests": { "md5": "144c5c59135ba3a045970716f12df8d0", "sha256": "fc949f6954890bd21a16adb73f9316513fd11441b945810be557b9d75ffd3b0e" }, "downloads": -1, "filename": "lockdir-0.11.tar.gz", "has_sig": false, "md5_digest": "144c5c59135ba3a045970716f12df8d0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1936, "upload_time": "2014-11-10T12:06:38", "url": "https://files.pythonhosted.org/packages/f5/6a/87c13c84edf697a0c5999a370141280b57bf599b6369a34747cadfd30c82/lockdir-0.11.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "144c5c59135ba3a045970716f12df8d0", "sha256": "fc949f6954890bd21a16adb73f9316513fd11441b945810be557b9d75ffd3b0e" }, "downloads": -1, "filename": "lockdir-0.11.tar.gz", "has_sig": false, "md5_digest": "144c5c59135ba3a045970716f12df8d0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1936, "upload_time": "2014-11-10T12:06:38", "url": "https://files.pythonhosted.org/packages/f5/6a/87c13c84edf697a0c5999a370141280b57bf599b6369a34747cadfd30c82/lockdir-0.11.tar.gz" } ] }