wy_qcos.api package
Subpackages
- wy_qcos.api.isaq package
- wy_qcos.api.posiq package
- Subpackages
- wy_qcos.api.posiq.routes_jsonrpc package
- Subpackages
- Submodules
- wy_qcos.api.posiq.routes_jsonrpc.auth module
- wy_qcos.api.posiq.routes_jsonrpc.device module
- wy_qcos.api.posiq.routes_jsonrpc.driver module
- wy_qcos.api.posiq.routes_jsonrpc.errors module
- wy_qcos.api.posiq.routes_jsonrpc.job module
- wy_qcos.api.posiq.routes_jsonrpc.metrics module
- wy_qcos.api.posiq.routes_jsonrpc.routes module
- wy_qcos.api.posiq.routes_jsonrpc.system module
- wy_qcos.api.posiq.routes_jsonrpc.transpiler module
- wy_qcos.api.posiq.routes_jsonrpc.user module
- wy_qcos.api.posiq.routes_jsonrpc.version module
- Module contents
- wy_qcos.api.posiq.routes_jsonrpc package
- Module contents
- Subpackages
- wy_qcos.api.schemas package
- Submodules
- wy_qcos.api.schemas.auth module
- wy_qcos.api.schemas.device module
- wy_qcos.api.schemas.driver module
- wy_qcos.api.schemas.job module
- wy_qcos.api.schemas.metrics module
- wy_qcos.api.schemas.system module
- wy_qcos.api.schemas.transpiler module
- wy_qcos.api.schemas.user module
- wy_qcos.api.schemas.version module
- Module contents
Submodules
wy_qcos.api.fastapi_coroutine module
- class wy_qcos.api.fastapi_coroutine.StoppableService(*args, **kwargs)
基类:
ProtocolProtocol for services that can be started and stopped.
- async start()
Start the service.
- 返回类型:
None
- async stop()
Stop the service gracefully.
- 返回类型:
None
- class wy_qcos.api.fastapi_coroutine.BackgroundServiceManager
基类:
objectManages the lifecycle of background services.
- add_service(service)
Add a background service to the manager.
- 参数:
service (StoppableService) -- A service object with start() and stop() methods.
- 返回类型:
None
- async start_all()
Start all registered background services.
- 返回类型:
None
- async stop_all()
Stop all background services gracefully.
- 返回类型:
None
- wy_qcos.api.fastapi_coroutine.app_lifespan(app)
FastAPI lifespan manager for background services.
- 参数:
app (fastapi_jsonrpc.API) -- FastAPI application instance
- 生成器:
None