$npx skillfedfor your agent

fifolock

A flexible low-level tool to make synchronisation primitives in asyncio Python

SkipPyPI Software DevelopmentReleased May 2019236.9K downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — fifolock-0.0.20-py3-none-any.whl
v0.0.20 · released 2019-05-02 · Python >=3.5

No, unless you have an existing codebase already using it. The package is abandoned (last release 2019-05-02, no commits since), and asyncio now includes built-in primitives that cover most common use cases. If you need custom lock semantics, consider maintaining a fork or using a maintained alternative.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.5 or later (requires_python: >=3.5)
  • Installation is frictionless—a pure Python wheel with no runtime dependencies.
  • However, the project is abandoned; the last commit was 2019-05-02 and no releases have occurred since.

License · maintenance · safety

permissive license (permissive) — Licensed under MIT (permissive), so you can use it freely in commercial and open-source projects with minimal restrictions.

last release 2019-05-02 (2661 days) · last repo commit 2019-05-02 · 54 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 236,901 downloads/mo, #8,971 on PyPI

Verify before relying

pip install fifolock

import asyncio
from fifolock import FifoLock

class Mutex(asyncio.Future):
    @staticmethod
    def is_compatible(holds):
        return not holds[Mutex]

lock = FifoLock()

async def access():
    async with lock(Mutex):
        pass
  • Whether the package works correctly with Python versions released after 2019.
  • Whether there are known issues or edge cases in FIFO lock ordering under high concurrency.
  • Whether alternative asyncio lock libraries now provide similar functionality.
Same gist for agents: .md · .json

What it is and what it does

Fifolock is a minimal asyncio synchronization tool that lets you build custom lock types—mutexes, read/write locks, semaphores—by defining compatibility rules between lock modes. Each mode is a subclass of asyncio.Future, and the lock grants access strictly in the order requests arrive, never allowing reentrancy.

You create a FifoLock instance, define lock-mode classes with an is_compatible method that checks whether a new request can proceed given the currently held locks, then use the lock as an async context manager. The package includes recipes for common patterns like exclusive locks, shared/exclusive (read/write) locks, and bounded semaphores. It requires Python 3.5 or later and has no external dependencies.

Use it for

  • Building a read/write lock where multiple readers can access a resource concurrently but writers get exclusive access.
  • Implementing a bounded semaphore that allows concurrent operations in strict request order.
  • Creating custom synchronization logic where lock compatibility depends on which modes are currently held.
  • Ensuring fair, deterministic lock acquisition order in asyncio applications where FIFO fairness matters.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Skip

No, unless you have an existing codebase already using it.

The package is abandoned (last release 2019-05-02, no commits since), and asyncio now includes built-in primitives that cover most common use cases. If you need custom lock semantics, consider maintaining a fork or using a maintained alternative.

Install

fifolock on PyPI

Before you install

Installation is frictionless—a pure Python wheel with no runtime dependencies. However, the project is abandoned; the last commit was 2019-05-02 and no releases have occurred since.

Requires Python 3.5 or later (requires_python: >=3.5)

License in practice

Licensed under MIT (permissive), so you can use it freely in commercial and open-source projects with minimal restrictions.

Quickstart

pip install fifolock

import asyncio
from fifolock import FifoLock

class Mutex(asyncio.Future):
    @staticmethod
    def is_compatible(holds):
        return not holds[Mutex]

lock = FifoLock()

async def access():
    async with lock(Mutex):
        pass

Verify before relying

  • Whether the package works correctly with Python versions released after 2019.
  • Whether there are known issues or edge cases in FIFO lock ordering under high concurrency.
  • Whether alternative asyncio lock libraries now provide similar functionality.

Package facts

Licensepermissive license permissive
Python supportSupports the current Python release >=3.5
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceAbandoned 2,661 days since the last release
Last repo commit
First released
Downloads236,901 / month, #8,971 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Framework :: AsyncIOLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3

Evidence: fifolock-0.0.20-py3-none-any.whl

Tags

Capabilities
asyncio synchronization primitivesfifo lock async pythoncustom async locksasyncio mutual exclusionread write lock asynciosemaphore asyncioasync lock ordering
Topics
asyncioconcurrencyabandoned

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “asyncio synchronization primitives”

  • fifolockFifolock provides a low-level building block for creating custom…
  • aiologicaiologic provides thread-aware and async-aware locking and…
  • aioprocessingProvides asyncio-compatible wrappers around multiprocessing objects…

Give your agent the search over MCP, or paste the wish link into any chat.

More Software Development packages

typing-extensions Worth it
PyPI · Software Development · released Jul 2026

Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.

PSF-2.0pure Python · 3.9+
1.9Bdownloads / mo
numpy Worth it
PyPI · Software Development · released Aug 2026

NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.

MITpure Python · 3.9+
456.2Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.

Install it if you are building CLIs in Python.

MITpure Python · 3.10+
369.3Mdownloads / mo
distlib With conditions
PyPI · Software Development · released Jun 2026

Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.

permissive licensepure Python
323.3Mdownloads / mo

See also aiorwlock · filelock · fasteners · aiologic · locket · atomos · portalocker · posix-ipc · readerwriterlock · sysv-ipc