starlette-context

Middleware for Starlette that allows you to store and access the context data of a request. Can be used with logging so logs automatically use request headers such as x-request-id or x-correlation-id.

Installation

In a virtualenv (see these instructions if you need to create one):

pip3 install starlette-context

Releases

Version Released Bullseye
Python 3.9
Bookworm
Python 3.11
Files
0.4.0 2025-03-04    
0.3.6 2023-02-16  
0.3.5 2022-11-26  
0.3.4 2022-06-22  
0.3.3 2021-06-28  
0.3.2 2021-04-22  
0.3.1 2020-10-17  
0.3.0 2020-10-10  
0.2.3 2020-07-26  
0.2.2 2020-04-26  
0.2.1 2020-04-18  
0.2.0 2020-02-21  
0.1.6 2020-01-02  
0.1.5 2020-01-01  
0.1.4 2019-12-31  
0.1.3 2019-12-30  
0.1.1 2019-12-28  
0.1 2019-12-27  

Issues with this package?

Page last updated 2025-07-17 18:29:00 UTC