<commit_before>py-filelock
===========

This package contains a single module, which implements a platform independent
file lock in Python, which provides a simple way of inter-process communication:

.. code-block:: python

    from filelock import Timeout, FileLock

    lock = FileLock("high_ground.txt.lock")
    with lock:
        open("high_ground.txt", "a").write("You were the chosen one.")

**Don't use** a *FileLock* to lock the file you want to write too, instead create a separate
*.lock* file as shown above.

.. image:: ./example/example_sm.gif

(Large: ./example/example.gif)

Similar libraries
-----------------
<commit_msg>*updated* README<commit_after>py-filelock
===========

This package contains a single module, which implements a platform independent
file lock in Python, which provides a simple way of inter-process communication:

.. code-block:: python

    from filelock import Timeout, FileLock

    lock = FileLock("high_ground.txt.lock")
    with lock:
        open("high_ground.txt", "a").write("You were the chosen one.")

**Don't use** a *FileLock* to lock the file you want to write too, instead create a separate
*.lock* file as shown above.

.. image:: ./example/example_sm.gif

`Large version <https://github.com/benediktschmitt/py-filelock/blob/master/example/example.gif>`_

Similar libraries
-----------------

{'fraction_non_alphanumeric': 0.14296296296296296, 'fraction_numerical': 0.0, 'mean_word_length': 3.6267123287671232, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1237901', 'n_tokens_mistral': 383, 'n_tokens_neox': 371, 'n_words': 140}