{ "info": { "author": "Krat Nikolay", "author_email": "@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Topic :: System :: Filesystems" ], "description": "aioflock: file lock support for asyncio (based on fcntl.flock)\r\n==================================\r\n\r\n.. image:: https://coveralls.io/repos/kolko/aioflock/badge.svg?branch=master&service=github\r\n :target: https://coveralls.io/github/kolko/aioflock?branch=master\r\n\r\n.. image:: https://travis-ci.org/kolko/aioflock.svg?branch=master\r\n :target: https://travis-ci.org/kolko/aioflock\r\n\r\n\r\n\r\nExample:\r\n\r\n.. code-block:: python\r\n\r\n from aioflock import LockFilename\r\n lock = LockFilename('/tmp/test_lock')\r\n yield from lock.acquire()\r\n ..inside lock..\r\n lock.release()\r\n\r\n\r\n\r\nWith stategment:\r\n\r\n.. code-block:: python\r\n\r\n from aioflock import LockFilename\r\n with (yield from LockFilename('/tmp/test_lock')):\r\n ..inside lock..\r\n\r\n\r\n\r\nCan use timeout:\r\n\r\n.. code-block:: python\r\n\r\n from aioflock import LockFilename, LockFilenameTimeout\r\n\r\n try:\r\n with (yield from LockFilename('/tmp/test_lock')):\r\n with (yield from LockFilename('/tmp/test_lock', timeout=1)):\r\n ...newer here...\r\n except LockFilenameTimeout:\r\n ...here...", "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/kolko/aioflock", "keywords": "", "license": "Apache 2.0", "maintainer": "", "maintainer_email": "", "name": "aioflock", "package_url": "https://pypi.org/project/aioflock/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/aioflock/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/kolko/aioflock" }, "release_url": "https://pypi.org/project/aioflock/0.0.1/", "requires_dist": null, "requires_python": null, "summary": "File lock support for asyncio.", "version": "0.0.1" }, "last_serial": 1701161, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "12ebbafcbd5ebfee697db0934660d21b", "sha256": "c453ee180cb3597b8955efc0d80c39109edb60ff7f2e4720e7f13063a4f8081d" }, "downloads": -1, "filename": "aioflock-0.0.1.tar.gz", "has_sig": false, "md5_digest": "12ebbafcbd5ebfee697db0934660d21b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2991, "upload_time": "2015-08-28T16:06:23", "url": "https://files.pythonhosted.org/packages/b6/96/2494f54a8e5d8eb4598de77ae77f668a0ab80b62e478d874efbb8f90ab05/aioflock-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "12ebbafcbd5ebfee697db0934660d21b", "sha256": "c453ee180cb3597b8955efc0d80c39109edb60ff7f2e4720e7f13063a4f8081d" }, "downloads": -1, "filename": "aioflock-0.0.1.tar.gz", "has_sig": false, "md5_digest": "12ebbafcbd5ebfee697db0934660d21b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2991, "upload_time": "2015-08-28T16:06:23", "url": "https://files.pythonhosted.org/packages/b6/96/2494f54a8e5d8eb4598de77ae77f668a0ab80b62e478d874efbb8f90ab05/aioflock-0.0.1.tar.gz" } ] }