{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/8"}],"enrichment":{"capability":"Provides asyncio support for the contextvars backport library on Python 3.5 and 3.6, and delegates to the built-in contextvars module on Python 3.7+.","skillfed_tags":["async-context","legacy-python"],"use_cases":["Maintaining request-scoped context (e.g., user ID, request ID) across async task chains on Python 3.5\u20133.6.","Migrating legacy asyncio code from Python 3.5\u20133.6 that relies on context variable inheritance to Python 3.7+.","Ensuring context isolation between concurrent tasks in older Python versions before native contextvars asyncio support existed."],"what_it_does":"aiocontextvars patches the contextvars backport library to add asyncio support for Python 3.5 and 3.6, allowing context variables to be properly inherited and maintained across async task boundaries. On Python 3.7+, it is simply a pass-through to the built-in contextvars module, which already has full asyncio integration.\n\nThe package works by monkey-patching asyncio's event loop and task creation to attach and propagate copied contexts. It requires importing the module before creating any event loops or tasks to ensure the patches are applied. On older Python versions, it provides a workaround for the lack of native context parameter support in call_soon() and Task creation, though the implementation differs from Python 3.7's native approach.","worth_installing":"No, unless you are maintaining legacy code on Python 3.5 or 3.6 that requires contextvars asyncio support. The package is abandoned (last release 2019, last commit 2022) and unnecessary on Python 3.7+. Modern Python versions have built-in contextvars with full asyncio support; use the standard library instead."},"id":"aiocontextvars","links":{"html":"https://skillfed.io/packages/aiocontextvars","md":"https://skillfed.io/packages/aiocontextvars.md","pypi":"https://pypi.org/project/aiocontextvars/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2019-04-08","license_spdx":null,"license_treatment":"permissive","name":"aiocontextvars","python_support":"supports_current","summary":"Asyncio support for PEP-567 contextvars backport."},"popularity":{"monthly_downloads":446231,"position":6613,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.2.2"}
