Metadata-Version: 1.1
Name: aioflock
Version: 0.0.1
Summary: File support for asyncio.
Home-page: https://github.com/kolko/aioflock
Author: Krat Nikolay
Author-email: @gmail.com
License: Apache 2.0
Description: aioflock: file lock support for asyncio (based on fcntl.flock)
        ==================================
        
        .. image:: https://coveralls.io/repos/kolko/aioflock/badge.svg?branch=master&service=github
            :target: https://coveralls.io/github/kolko/aioflock?branch=master
        
        .. image:: https://travis-ci.org/kolko/aioflock.svg?branch=master
            :target: https://travis-ci.org/kolko/aioflock
        
        
        
        Example:
        
        .. code-block:: python
        
            from aioflock import LockFilename
            lock = LockFilename('/tmp/test_lock')
            yield from lock.acquire()
            ..inside lock..
            lock.release()
        
        
        
        With stategment:
        
        .. code-block:: python
        
            from aioflock import LockFilename
            with (yield from LockFilename('/tmp/test_lock')):
                ..inside lock..
        
        
        
        Can use timeout:
        
        .. code-block:: python
        
            from aioflock import LockFilename, LockFilenameTimeout
        
            try:
                with (yield from LockFilename('/tmp/test_lock')):
                    with (yield from LockFilename('/tmp/test_lock', timeout=1)):
                        ...newer here...
            except LockFilenameTimeout:
                ...here...
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Topic :: System :: Filesystems
