csrd-context
Request context, header utilities, and logging middleware for FastAPI.
Package: csrd.context · Import: from csrd.context import ...
What's included
- Framework-agnostic context variable system (headers, path params, query params, API version)
RequestContextMiddleware— captures request headers into context (raw ASGI, streaming-safe)HTTPLoggingMiddleware— structured HTTP request/response logging (raw ASGI, streaming-safe)- Platform context variables (
user_info_context,hit_id_context,app_id_context) get_headers(),get_hit_id(),get_app_id()— accessors for the current request context
Installation
This package is part of the fastapi-common monorepo. Install via git:
uv pip install "csrd-context @ git+ssh://git@github.com/csrd-api/fastapi-common.git#subdirectory=packages/context"
Dependencies
csrd-models(Tier 1 — no othercsrd.*sibling dependencies)
Metadata
Release files for csrd-context 0.5.29
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| csrd_context-0.5.29.tar.gz | 8.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| csrd_context-0.5.29-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.9 kB
Release files / csrd_context-0.5.29.tar.gz
| Download URL | csrd_context-0.5.29.tar.gz |
|---|---|
| Size | 8.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3605f6bcbba4cde8f06d092cfab45f1d08e91ae011b8f28e19719438c378bf8c
|
|
BLAKE2b-256 checksum How to use checksums |
30afadd5e7544e35c52ac2149f3bd71f8080ba7cb7a4a58465e8afc4f54afb47
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 26, 2026.
Transparency logRelease files / csrd_context-0.5.29-py3-none-any.whl
| Download URL | csrd_context-0.5.29-py3-none-any.whl |
|---|---|
| Size | 8.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f17089ea75a3eceafbe96f09a1fd25dc217fab06a6b00ef09798b4fa69f8844a
|
|
BLAKE2b-256 checksum How to use checksums |
150fe392a5937e4ff2bd55a3a58e6d259ea1932926ce619761b33eeec1405bd1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 26, 2026.
Transparency log