Skip to main content
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...

Release files for aioflock 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aioflock 0.0.1
File Size Uploaded
aioflock-0.0.1.tar.gz 3.0 kB Details

Release files / aioflock-0.0.1.tar.gz

Download URL aioflock-0.0.1.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c453ee180cb3597b8955efc0d80c39109edb60ff7f2e4720e7f13063a4f8081d
BLAKE2b-256 checksum
How to use checksums
b6962494f54a8e5d8eb4598de77ae77f668a0ab80b62e478d874efbb8f90ab05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page