{ "info": { "author": "Leo Wallentin | J++ Stockholm", "author_email": "mejl@leowallentin.se", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "A minimal, no-dependencies lock file mechanism, creating a temporary file to signal that a\nspecific file should not be touched by other scripts, or instances of the same script.\n\nCreated for [Europe 1\u00b0 Warmer](https://www.onedegreewarmer.eu/).\n\nThis is module does _not_ implement OS level file locking. For that, see e.g. the built-in [lockfile](https://pythonhosted.org/lockfile/lockfile.html) module, [zc.lockfile](https://pypi.org/project/zc.lockfile/), or other similar projects.\n\n## Installation\n\n```sh\npip install tmplockfile\n```\n\n## Usage\n\n```python3\nfrom tmplockfile import LockFile, ResourceLocked\n\nwith LockFile(\"data.csv\") as lockfile:\n # Do things involving data.csv here\n #\n # A lock-file is temporarily placed in the same directory,\n # in a way that avoids the most obvious race conditions.\n # The variable `lockfile` contains the name of the lock-file,\n # e.g. `data.csv~lock`.\n\nexcept ResourceLocked:\n print(\"Another script is currently working on data.csv. Try again later!\")\n```\n\n## Changelog\n\n- 0.0.3\n\n - Don't crash when no lockfile could be created\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jplusplus/lockfile", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "tmplockfile", "package_url": "https://pypi.org/project/tmplockfile/", "platform": "", "project_url": "https://pypi.org/project/tmplockfile/", "project_urls": { "Homepage": "https://github.com/jplusplus/lockfile" }, "release_url": "https://pypi.org/project/tmplockfile/0.0.3/", "requires_dist": null, "requires_python": "", "summary": "A minimal lock file mechanism", "version": "0.0.3" }, "last_serial": 5164712, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "fa4edd402da54811a805fc222162357b", "sha256": "3501a804854f716baf9dd68f96314fc63ce7d96e99d1a48e51d69df3c34e4dce" }, "downloads": -1, "filename": "tmplockfile-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "fa4edd402da54811a805fc222162357b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3230, "upload_time": "2019-03-27T11:53:31", "url": "https://files.pythonhosted.org/packages/76/64/6e95cac659facb8e91cb4d11f5cc61696a9e50fc428395f3bbd9783a8714/tmplockfile-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7cd7fa096f2c220e1e546f0895eea5c2", "sha256": "9131933c43bc211c5f967d84549e1f467d34542dec0821d431b58d04f6c507be" }, "downloads": -1, "filename": "tmplockfile-0.0.1.tar.gz", "has_sig": false, "md5_digest": "7cd7fa096f2c220e1e546f0895eea5c2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1833, "upload_time": "2019-03-27T11:53:33", "url": "https://files.pythonhosted.org/packages/ff/2b/7315f36f02bdee458ce2158cbb3c184fa2600b1c5ae3f17e233a334786d2/tmplockfile-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "cdd812e586ffe49481c0e2030c715ba5", "sha256": "0ead9ff4ca060a5ad59f1283464ae491289b5ed8f7f2431d3d9d3a0c233cce73" }, "downloads": -1, "filename": "tmplockfile-0.0.2-py2-none-any.whl", "has_sig": false, "md5_digest": "cdd812e586ffe49481c0e2030c715ba5", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 4147, "upload_time": "2019-04-19T12:54:37", "url": "https://files.pythonhosted.org/packages/af/d0/c69fd62ccfea8a202f6976d552ef9a87dc49bcc75cf533cba2d7039ca98a/tmplockfile-0.0.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d7b8ec42da11fd3cacee89223f1a6c21", "sha256": "c0e0b9f55e5d3e335da05ef72c1aa218bea02fdb60935bf77c3f713126971ed0" }, "downloads": -1, "filename": "tmplockfile-0.0.2.tar.gz", "has_sig": false, "md5_digest": "d7b8ec42da11fd3cacee89223f1a6c21", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2217, "upload_time": "2019-04-19T12:54:38", "url": "https://files.pythonhosted.org/packages/d4/12/37cc71bc1b751ddbabc8508af5cf3f9dbec187b53ee13d2c2db42a938a16/tmplockfile-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "26d78c09dd10b6a4781286472668f71b", "sha256": "12b1d9c00f45734da8c48dd61c3c2f0f7c52bd94c2a973548eb8114ca86739d6" }, "downloads": -1, "filename": "tmplockfile-0.0.3-py2-none-any.whl", "has_sig": false, "md5_digest": "26d78c09dd10b6a4781286472668f71b", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 4168, "upload_time": "2019-04-19T13:04:33", "url": "https://files.pythonhosted.org/packages/18/bf/730b97c35311cea34674a522f42dce8924c0f7c3721bcdd99c32ff0bbc5f/tmplockfile-0.0.3-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "840ebb432418a6aadb076c94cc6aafcd", "sha256": "9a9b639ba8f258b975111e7d9f15b0adee3fd72ac4a8b426ef1d225f0182e4e1" }, "downloads": -1, "filename": "tmplockfile-0.0.3.tar.gz", "has_sig": false, "md5_digest": "840ebb432418a6aadb076c94cc6aafcd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2236, "upload_time": "2019-04-19T13:04:35", "url": "https://files.pythonhosted.org/packages/57/27/e0f74ee56003fc2a8a065bdd51b89562d0494863d7ff752d710086e00763/tmplockfile-0.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "26d78c09dd10b6a4781286472668f71b", "sha256": "12b1d9c00f45734da8c48dd61c3c2f0f7c52bd94c2a973548eb8114ca86739d6" }, "downloads": -1, "filename": "tmplockfile-0.0.3-py2-none-any.whl", "has_sig": false, "md5_digest": "26d78c09dd10b6a4781286472668f71b", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 4168, "upload_time": "2019-04-19T13:04:33", "url": "https://files.pythonhosted.org/packages/18/bf/730b97c35311cea34674a522f42dce8924c0f7c3721bcdd99c32ff0bbc5f/tmplockfile-0.0.3-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "840ebb432418a6aadb076c94cc6aafcd", "sha256": "9a9b639ba8f258b975111e7d9f15b0adee3fd72ac4a8b426ef1d225f0182e4e1" }, "downloads": -1, "filename": "tmplockfile-0.0.3.tar.gz", "has_sig": false, "md5_digest": "840ebb432418a6aadb076c94cc6aafcd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2236, "upload_time": "2019-04-19T13:04:35", "url": "https://files.pythonhosted.org/packages/57/27/e0f74ee56003fc2a8a065bdd51b89562d0494863d7ff752d710086e00763/tmplockfile-0.0.3.tar.gz" } ] }