Skip to content

cereggii

Thread synchronization utilities for Python.

  • Lock-Free Data Structures

    Thread-safe building blocks like AtomicCache and AtomicDict that scale without locking or external synchronization.

  • Atomic Operations

    Fine-grained control with AtomicInt64 and AtomicRef for building custom concurrent algorithms with compare-and-swap operations.

  • Thread Coordination

    Synchronization primitives including CountDownLatch, call_once, and ReadersWriterLock for coordinating complex multi-threaded workflows.

  • True Parallelism

    Unlock even more parallelism from free-threading Python, with data structures that scale better than builtins across CPU cores.

See the API Reference for more details.

Installation

pip install cereggii
uv add cereggii

Cereggii is compatible with most environments where Python is supported. Check the compatibility matrix for more details.