Metadata-Version: 1.1
Name: mono-require
Version: 0.1.1
Summary: lock the file when access local resource
Home-page: https://github.com/yeyuexia/mono-require
Author: yeyuexia
Author-email: yyxworld@gmail.com
License: MIT
Description: mono-require
        ============
        .. image:: https://travis-ci.org/yeyuexia/mono-require.svg?branch=master
           :target: https://travis-ci.org/yeyuexia/mono-require
        
        Use `mono-require` to access local resource for avoid read/write conflict.
        
        Requirements
        ------------
        * Python 3.6+
        * Works on Linux, Windows, Mac OSX, BSD
        
        Install
        -------
        
        pip::
        
          pip install mono-require
        
        Usage
        -----
        
        Use `require` to access local resource.
        
        .. code-block::python
            from monorequire import require
        
            with require("resource") as f:
                f.write("some")
        
        
        `require` support all arguments except `closefd` and `opener` of built-in method `open` (https://docs.python.org/3/library/functions.html?highlight=open#open).
        
        And `require` have three more arguments with default value:
        
        * `timeout=1` and `delay=0.001`. When require a resource has been used, `require` could waiting till timeout and throw `LockTimeoutException`.
        * `lock_path="."` to set the lock file location. By default we create lock file in resource directory.
        
Keywords: lock when access local file
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.6
