skit_pipelines.api.models package¶
Submodules¶
skit_pipelines.api.models.auth_models module¶
- class Token(*, access_token: str, token_type: str)[source]¶
Bases:
pydantic.main.BaseModel
- access_token: str¶
- token_type: str¶
- class TokenData(*, username: Optional[str] = None)[source]¶
Bases:
pydantic.main.BaseModel
- username: Optional[str]¶
- class UserInDB(*, username: str, hashed_password: str)[source]¶
Bases:
skit_pipelines.api.models.auth_models.User
- hashed_password: str¶
skit_pipelines.api.models.custom_models module¶
skit_pipelines.api.models.errors module¶
skit_pipelines.api.models.requests module¶
- class StorageOptions(*, type: str = 's3', bucket: str = 'vernacular-ml')[source]¶
Bases:
skit_pipelines.api.models.requests.BaseRequestSchema
- bucket: str¶
- type: str¶
skit_pipelines.api.models.responses module¶
- class StatusResponseModel(*, message: str, run_id: str, run_url: str, error_logs: str = '', uris: Optional[List[str]] = None, webhook: bool = False)[source]¶
Bases:
pydantic.main.BaseModel
- error_logs: str¶
- message: str¶
- run_id: str¶
- run_url: str¶
- uris: Optional[List[str]]¶
- webhook: bool¶
- customResponse(message: Dict[Any, Any], status_code: int = 200, status: str = 'ok') starlette.responses.JSONResponse [source]¶
- statusWiseResponse(run_response: skit_pipelines.api.models.custom_models.ParseRunResponse, webhook=False)[source]¶