{"library":"starlette-context","type":"library","category":null,"description":"Starlette Context is a middleware for Starlette that provides a request-scoped data store, allowing you to store and access context data throughout the request lifecycle. It is commonly used to enrich logs with request-specific identifiers like `x-request-id` or `x-correlation-id` without explicit parameter passing. The current version is 0.5.1, released on February 28, 2026, and the library maintains an active release cadence.","language":"python","status":"active","version":"0.5.1","tags":["starlette","middleware","context","logging","request-id","correlation-id","fastapi"],"install":[{"cmd":"pip install starlette-context","imports":["from starlette_context.middleware import ContextMiddleware","from starlette_context.middleware import RawContextMiddleware","from starlette_context import context","from starlette_context import plugins","from starlette_context import request_cycle_context"]}],"homepage":null,"github":"https://github.com/tomwojcik/starlette-context","docs":"https://starlette-context.readthedocs.io/","changelog":null,"pypi":"https://pypi.org/project/starlette-context/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":2,"avg_import_s":0.35,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/starlette-context/compatibility"},"provenance":{"verified_status":"passing","verified_at":"Sun Jun 28","last_verified":"Sun Jun 28","next_check":"Tue Jul 28","install_tag":null}}