{ "info": { "author": "yeyuexia", "author_email": "yyxworld@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Build Tools" ], "description": "mono-require\n============\n.. image:: https://travis-ci.org/yeyuexia/mono-require.svg?branch=master\n :target: https://travis-ci.org/yeyuexia/mono-require\n\nUse `mono-require` to access local resource for avoid read/write conflict.\n\nRequirements\n------------\n* Python 3.6+\n* Works on Linux, Windows, Mac OSX, BSD\n\nInstall\n-------\n\npip::\n\n pip install mono-require\n\nUsage\n-----\n\nUse `require` to access local resource.\n\n.. code-block::python\n from monorequire import require\n\n with require(\"resource\") as f:\n f.write(\"some\")\n\n\n`require` support all arguments except `closefd` and `opener` of built-in method `open` (https://docs.python.org/3/library/functions.html?highlight=open#open).\n\nAnd `require` have three more arguments with default value:\n\n* `timeout=1` and `delay=0.001`. When require a resource has been used, `require` could waiting till timeout and throw `LockTimeoutException`.\n* `lock_path=\".\"` to set the lock file location. By default we create lock file in resource directory.", "description_content_type": null, "docs_url": null, "download_url": null, "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/yeyuexia/mono-require", "keywords": "lock when access local file", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "mono-require", "package_url": "https://pypi.org/project/mono-require/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/mono-require/", "project_urls": { "Homepage": "https://github.com/yeyuexia/mono-require" }, "release_url": "https://pypi.org/project/mono-require/0.1.1/", "requires_dist": null, "requires_python": null, "summary": "lock the file when access local resource", "version": "0.1.1" }, "last_serial": 2682072, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "7d240ead360dd643cdf4edaebd738a8d", "sha256": "aa06a62ae71ddf78d2166838077e3d71c1464377eee6c607affdac2ed8e5ad27" }, "downloads": -1, "filename": "mono-require-0.1.tar.gz", "has_sig": false, "md5_digest": "7d240ead360dd643cdf4edaebd738a8d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2253, "upload_time": "2017-03-02T11:26:13", "url": "https://files.pythonhosted.org/packages/98/20/b6bf3523ea41f1efed7b14346b169b14c93f89367e9daeb5683363583c73/mono-require-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "43200c51f230092407a82b65af7792ac", "sha256": "ee68f93540206eeb41fc686dd147058d2f489ee9814487801d7e85780b19e027" }, "downloads": -1, "filename": "mono-require-0.1.1.tar.gz", "has_sig": false, "md5_digest": "43200c51f230092407a82b65af7792ac", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2398, "upload_time": "2017-03-04T10:15:21", "url": "https://files.pythonhosted.org/packages/43/e4/48df923163415ede73a5d9b27486a12c8cad9e99dad62ed1c9cf3c38f51a/mono-require-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "43200c51f230092407a82b65af7792ac", "sha256": "ee68f93540206eeb41fc686dd147058d2f489ee9814487801d7e85780b19e027" }, "downloads": -1, "filename": "mono-require-0.1.1.tar.gz", "has_sig": false, "md5_digest": "43200c51f230092407a82b65af7792ac", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2398, "upload_time": "2017-03-04T10:15:21", "url": "https://files.pythonhosted.org/packages/43/e4/48df923163415ede73a5d9b27486a12c8cad9e99dad62ed1c9cf3c38f51a/mono-require-0.1.1.tar.gz" } ] }