Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /khulnasoft_DockNet /backend /src /docknet /api /dependencies.py
| from typing import Generator | |
| from fastapi import Request | |
| from docknet.managers.components import ComponentManager | |
| def get_component_manager(request: Request) -> Generator[ComponentManager, None, None]: | |
| """Returns the initialized component manager. | |
| This is used as FastAPI dependency and called for every request. | |
| """ | |
| with ComponentManager.from_request(request) as component_manager: | |
| yield component_manager | |
Xet Storage Details
- Size:
- 436 Bytes
- Xet hash:
- 05f0532d0fcc2de3f323b8596126c9c8114161afc042d1a5ad02d213bd024e33
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.