{"repo":"tomwojcik/starlette-context","free":true,"listed":false,"github":"https://github.com/tomwojcik/starlette-context","clone":"git clone https://github.com/tomwojcik/starlette-context.git","description":"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.","language":"Python","stars":611,"topics":["python","python3","starlette","fastapi","starlette-context","middleware"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"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. Resources - Source : https://github.com/tomwojcik/starlette-context - Documentation : https://starlette-context.readthedocs.io/ - Changelog : https://starlette-context.readthedocs.io/en/latest/changelog.html Installation Dependencies - starlette =0.27.0 Example In this example the response contains a JSON with: Context can be updated and accessed at anytime if it's created in the middleware. Sponsorship A huge thank you to Adverity for sponsoring the development of this OSS library. Contribution See the contributing guide.","default_branch":null,"files":null,"tree":[],"storefront":"/r/tomwojcik","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/tomwojcik/starlette-context/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}