xlocal

JSON →
library 0.5 ·python
verified Jun 7, 2026

xlocal is a library for execution-local storage, providing a cleaner alternative to thread-local (and global) mutable state. It supports both thread-based and asynchronous (asyncio) contexts, and its variables are scope-safe and automatically cleaned up. Current version is 0.5; the library is in maintenance mode with rare releases.