app.schemas package¶
Submodules¶
app.schemas.job module¶
-
class app.schemas.job.Job(*, name: str, output: str | None =
None
, id: int, owner_id: int)[source]¶ Bases:
JobInDBBase
-
model_computed_fields : ClassVar[dict[str, ComputedFieldInfo]] =
{}
¶ A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
-
model_config : ClassVar[ConfigDict] =
{'orm_mode': True}
¶ Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
model_fields : ClassVar[dict[str, FieldInfo]] =
{'id': FieldInfo(annotation=int, required=True), 'name': FieldInfo(annotation=str, required=True), 'output': FieldInfo(annotation=Union[str, NoneType], required=False), 'owner_id': FieldInfo(annotation=int, required=True)}
¶ Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].
This replaces Model.__fields__ from Pydantic V1.
-
model_computed_fields : ClassVar[dict[str, ComputedFieldInfo]] =
-
class app.schemas.job.JobBase(*, name: str | None =
None
, output: str | None =None
)[source]¶ Bases:
BaseModel
-
model_computed_fields : ClassVar[dict[str, ComputedFieldInfo]] =
{}
¶ A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
-
model_config : ClassVar[ConfigDict] =
{}
¶ Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
model_fields : ClassVar[dict[str, FieldInfo]] =
{'name': FieldInfo(annotation=Union[str, NoneType], required=False), 'output': FieldInfo(annotation=Union[str, NoneType], required=False)}
¶ Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].
This replaces Model.__fields__ from Pydantic V1.
- name : str | None¶
- output : str | None¶
-
model_computed_fields : ClassVar[dict[str, ComputedFieldInfo]] =
-
class app.schemas.job.JobCreate(*, name: str | None =
None
, output: str | None =None
)[source]¶ Bases:
JobBase
-
model_computed_fields : ClassVar[dict[str, ComputedFieldInfo]] =
{}
¶ A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
-
model_config : ClassVar[ConfigDict] =
{}
¶ Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
model_fields : ClassVar[dict[str, FieldInfo]] =
{'name': FieldInfo(annotation=Union[str, NoneType], required=False), 'output': FieldInfo(annotation=Union[str, NoneType], required=False)}
¶ Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].
This replaces Model.__fields__ from Pydantic V1.
-
model_computed_fields : ClassVar[dict[str, ComputedFieldInfo]] =
-
class app.schemas.job.JobInDB(*, name: str, output: str | None =
None
, id: int, owner_id: int)[source]¶ Bases:
JobInDBBase
-
model_computed_fields : ClassVar[dict[str, ComputedFieldInfo]] =
{}
¶ A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
-
model_config : ClassVar[ConfigDict] =
{'orm_mode': True}
¶ Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
model_fields : ClassVar[dict[str, FieldInfo]] =
{'id': FieldInfo(annotation=int, required=True), 'name': FieldInfo(annotation=str, required=True), 'output': FieldInfo(annotation=Union[str, NoneType], required=False), 'owner_id': FieldInfo(annotation=int, required=True)}
¶ Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].
This replaces Model.__fields__ from Pydantic V1.
-
model_computed_fields : ClassVar[dict[str, ComputedFieldInfo]] =
-
class app.schemas.job.JobInDBBase(*, name: str, output: str | None =
None
, id: int, owner_id: int)[source]¶ Bases:
JobBase
- id : int¶
-
model_computed_fields : ClassVar[dict[str, ComputedFieldInfo]] =
{}
¶ A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
-
model_config : ClassVar[ConfigDict] =
{'orm_mode': True}
¶ Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
model_fields : ClassVar[dict[str, FieldInfo]] =
{'id': FieldInfo(annotation=int, required=True), 'name': FieldInfo(annotation=str, required=True), 'output': FieldInfo(annotation=Union[str, NoneType], required=False), 'owner_id': FieldInfo(annotation=int, required=True)}
¶ Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].
This replaces Model.__fields__ from Pydantic V1.
- name : str¶
- owner_id : int¶
-
class app.schemas.job.JobUpdate(*, name: str | None =
None
, output: str | None =None
)[source]¶ Bases:
JobBase
-
model_computed_fields : ClassVar[dict[str, ComputedFieldInfo]] =
{}
¶ A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
-
model_config : ClassVar[ConfigDict] =
{}
¶ Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
model_fields : ClassVar[dict[str, FieldInfo]] =
{'name': FieldInfo(annotation=Union[str, NoneType], required=False), 'output': FieldInfo(annotation=Union[str, NoneType], required=False)}
¶ Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].
This replaces Model.__fields__ from Pydantic V1.
-
model_computed_fields : ClassVar[dict[str, ComputedFieldInfo]] =
app.schemas.token module¶
- class app.schemas.token.Token(*, access_token: str, token_type: str)[source]¶
Bases:
BaseModel
- access_token : str¶
-
model_computed_fields : ClassVar[dict[str, ComputedFieldInfo]] =
{}
¶ A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
-
model_config : ClassVar[ConfigDict] =
{}
¶ Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
model_fields : ClassVar[dict[str, FieldInfo]] =
{'access_token': FieldInfo(annotation=str, required=True), 'token_type': FieldInfo(annotation=str, required=True)}
¶ Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].
This replaces Model.__fields__ from Pydantic V1.
- token_type : str¶
-
class app.schemas.token.TokenPayload(*, sub: int | None =
None
)[source]¶ Bases:
BaseModel
-
model_computed_fields : ClassVar[dict[str, ComputedFieldInfo]] =
{}
¶ A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
-
model_config : ClassVar[ConfigDict] =
{}
¶ Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
model_fields : ClassVar[dict[str, FieldInfo]] =
{'sub': FieldInfo(annotation=Union[int, NoneType], required=False)}
¶ Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].
This replaces Model.__fields__ from Pydantic V1.
- sub : int | None¶
-
model_computed_fields : ClassVar[dict[str, ComputedFieldInfo]] =
app.schemas.user module¶
-
class app.schemas.user.User(*, is_active: bool | None =
True
, is_superuser: bool =False
, id: int | None =None
)[source]¶ Bases:
UserInDBBase
-
model_computed_fields : ClassVar[dict[str, ComputedFieldInfo]] =
{}
¶ A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
-
model_config : ClassVar[ConfigDict] =
{'orm_mode': True}
¶ Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
model_fields : ClassVar[dict[str, FieldInfo]] =
{'id': FieldInfo(annotation=Union[int, NoneType], required=False), 'is_active': FieldInfo(annotation=Union[bool, NoneType], required=False, default=True), 'is_superuser': FieldInfo(annotation=bool, required=False, default=False)}
¶ Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].
This replaces Model.__fields__ from Pydantic V1.
-
model_computed_fields : ClassVar[dict[str, ComputedFieldInfo]] =
-
class app.schemas.user.UserBase(*, is_active: bool | None =
True
, is_superuser: bool =False
)[source]¶ Bases:
BaseModel
- is_active : bool | None¶
- is_superuser : bool¶
-
model_computed_fields : ClassVar[dict[str, ComputedFieldInfo]] =
{}
¶ A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
-
model_config : ClassVar[ConfigDict] =
{}
¶ Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
model_fields : ClassVar[dict[str, FieldInfo]] =
{'is_active': FieldInfo(annotation=Union[bool, NoneType], required=False, default=True), 'is_superuser': FieldInfo(annotation=bool, required=False, default=False)}
¶ Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].
This replaces Model.__fields__ from Pydantic V1.
-
class app.schemas.user.UserCreate(*, is_active: bool | None =
True
, is_superuser: bool =False
, user_name: str, password: str)[source]¶ Bases:
UserBase
-
model_computed_fields : ClassVar[dict[str, ComputedFieldInfo]] =
{}
¶ A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
-
model_config : ClassVar[ConfigDict] =
{}
¶ Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
model_fields : ClassVar[dict[str, FieldInfo]] =
{'is_active': FieldInfo(annotation=Union[bool, NoneType], required=False, default=True), 'is_superuser': FieldInfo(annotation=bool, required=False, default=False), 'password': FieldInfo(annotation=str, required=True), 'user_name': FieldInfo(annotation=str, required=True)}
¶ Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].
This replaces Model.__fields__ from Pydantic V1.
- password : str¶
- user_name : str¶
-
model_computed_fields : ClassVar[dict[str, ComputedFieldInfo]] =
-
class app.schemas.user.UserInDB(*, is_active: bool | None =
True
, is_superuser: bool =False
, id: int | None =None
, hashed_password: str)[source]¶ Bases:
UserInDBBase
- hashed_password : str¶
-
model_computed_fields : ClassVar[dict[str, ComputedFieldInfo]] =
{}
¶ A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
-
model_config : ClassVar[ConfigDict] =
{'orm_mode': True}
¶ Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
model_fields : ClassVar[dict[str, FieldInfo]] =
{'hashed_password': FieldInfo(annotation=str, required=True), 'id': FieldInfo(annotation=Union[int, NoneType], required=False), 'is_active': FieldInfo(annotation=Union[bool, NoneType], required=False, default=True), 'is_superuser': FieldInfo(annotation=bool, required=False, default=False)}
¶ Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].
This replaces Model.__fields__ from Pydantic V1.
-
class app.schemas.user.UserInDBBase(*, is_active: bool | None =
True
, is_superuser: bool =False
, id: int | None =None
)[source]¶ Bases:
UserBase
- id : int | None¶
-
model_computed_fields : ClassVar[dict[str, ComputedFieldInfo]] =
{}
¶ A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
-
model_config : ClassVar[ConfigDict] =
{'orm_mode': True}
¶ Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
model_fields : ClassVar[dict[str, FieldInfo]] =
{'id': FieldInfo(annotation=Union[int, NoneType], required=False), 'is_active': FieldInfo(annotation=Union[bool, NoneType], required=False, default=True), 'is_superuser': FieldInfo(annotation=bool, required=False, default=False)}
¶ Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].
This replaces Model.__fields__ from Pydantic V1.
-
class app.schemas.user.UserUpdate(*, is_active: bool | None =
True
, is_superuser: bool =False
, password: str | None =None
)[source]¶ Bases:
UserBase
-
model_computed_fields : ClassVar[dict[str, ComputedFieldInfo]] =
{}
¶ A dictionary of computed field names and their corresponding ComputedFieldInfo objects.
-
model_config : ClassVar[ConfigDict] =
{}
¶ Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
model_fields : ClassVar[dict[str, FieldInfo]] =
{'is_active': FieldInfo(annotation=Union[bool, NoneType], required=False, default=True), 'is_superuser': FieldInfo(annotation=bool, required=False, default=False), 'password': FieldInfo(annotation=Union[str, NoneType], required=False)}
¶ Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].
This replaces Model.__fields__ from Pydantic V1.
- password : str | None¶
-
model_computed_fields : ClassVar[dict[str, ComputedFieldInfo]] =