altimeter.qj.api package¶
Submodules¶
altimeter.qj.api.deps module¶
FastAPI dependencies
-
class
SessionGenerator
¶ Bases:
object
Singleton class for generating db sesssions
-
get_session
()¶ Get a db session object
- Return type
Session
-
-
api_key
(key=Depends(APIKeyHeader))¶ Validate an api key string matches the value currently in SecretsManager
- Return type
str
-
db_session
()¶ Get a db session
- Return type
Generator
[Session
,None
,None
]
-
result_set_crud
()¶ Get a CRUDResultSet object
- Return type