xlocal
execution locals: killing global state (including thread locals)
Decision gist · record as of 2026-08-14
No. The package is abandoned (last release 2012-11-16, no maintenance since), has unclear licensing, high install friction (zip-only distribution), and unspecified Python version support. Modern alternatives provide similar functionality with active maintenance. Use only if maintaining legacy code already depending on it.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Python version support is unspecified; package was last released in 2012 and may not work on modern Python versions.
- High install friction: distributed as a zip file rather than a wheel or sdist.
- Package is abandoned—last release was 2012-11-16 with no commits or maintenance activity since.
License · maintenance · safety
UNKNOWN (unclear) — License is marked UNKNOWN with no SPDX identifier; actual licensing terms are unclear. Verify the LICENSE file in the source before using in commercial or copyleft-sensitive contexts.
last release 2012-11-16 (5019 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 132,453 downloads/mo, #11,552 on PyPI
Alternatives
Verify before relying
from xlocal import xlocal
xcurrent = xlocal()
with xcurrent(x=1):
print(xcurrent.x) # prints 1
# Outside the context, xcurrent.x raises AttributeError- Whether xlocal works on current Python versions or only on Python 2.x.
- Current compatibility with modern threading or async/await patterns.
- Whether the zip distribution includes all necessary files or if setup.py is present.
What it is and what it does
xlocal implements execution-local storage—a restricted variant of thread-local storage where attribute bindings are scoped to a context-managed code block and all functions it calls, rather than persisting globally or thread-wide. Attributes set via a with-statement are visible to all code invoked within that block, including nested function calls, but are automatically cleaned up when the block exits and do not leak to other threads or greenlets.
The package is designed for frameworks and libraries that invoke handler or plugin code and want to pass execution-specific state without using globals or thread locals. It prevents called code from rebinding state of its caller and ensures clean lifecycle management. However, the package has been abandoned since 2012-11-16 and is not actively maintained.
Use it for
- Pass request-specific context to handler functions spawned in threads or greenlets without using globals.
- Implement per-execution state in web frameworks or plugin systems where multiple concurrent executions need isolated bindings.
- Prevent state leakage when invoking user code that should not modify the caller's execution context.
- Manage thread-local or greenlet-local state with explicit lifecycle control via context managers.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No.
The package is abandoned (last release 2012-11-16, no maintenance since), has unclear licensing, high install friction (zip-only distribution), and unspecified Python version support. Modern alternatives provide similar functionality with active maintenance. Use only if maintaining legacy code already depending on it.
Install
xlocal on PyPI
Before you install
High install friction: distributed as a zip file rather than a wheel or sdist. Package is abandoned—last release was 2012-11-16 with no commits or maintenance activity since. Not suitable for new projects.
Python version support is unspecified; package was last released in 2012 and may not work on modern Python versions.
License in practice
License is marked UNKNOWN with no SPDX identifier; actual licensing terms are unclear. Verify the LICENSE file in the source before using in commercial or copyleft-sensitive contexts.
Quickstart
from xlocal import xlocal
xcurrent = xlocal()
with xcurrent(x=1):
print(xcurrent.x) # prints 1
# Outside the context, xcurrent.x raises AttributeError
Verify before relying
- Whether xlocal works on current Python versions or only on Python 2.x.
- Current compatibility with modern threading or async/await patterns.
- Whether the zip distribution includes all necessary files or if setup.py is present.
Package facts
| License | UNKNOWN unclear |
| Python support | Not specified |
| Install friction | High. Source build required |
| Runtime dependencies | None |
| Maintenance | Abandoned 5,019 days since the last release |
| First released | |
| Downloads | 132,453 / month, #11,552 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: xlocal-0.5.zip
Tags
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 › “execution local storage”
- xlocalProvides execution-local storage that scopes attribute bindings to a…
- langgraph-checkpoint-sqliteProvides a SQLite-backed checkpoint saver for LangGraph, enabling…
- render_sdkOfficial Python SDK for Render that lets you define and run workflow…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
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.
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.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
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.
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.
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.
See also psutil-home-assistant · Flask-Threads · greenlet · proxy_tools · threaded · opentelemetry-instrumentation-threading · kthread · stopit · pytest-threadleak · opencensus-context