src.models.dataset module#
Data models for datasets.
- class src.models.dataset.Connector(value)[source]#
Bases:
str
,Enum
Allowed connectors for datasets.
- CLEARML = 'clearml'#
- DEFAULT = ''#
- _generate_next_value_(start, count, last_values)#
Generate the next value when not given.
name: the name of the member start: the initial start value or None count: the number of existing members last_value: the last value assigned or None
- _member_map_ = {'CLEARML': Connector.CLEARML, 'DEFAULT': Connector.DEFAULT}#
- _member_names_ = ['DEFAULT', 'CLEARML']#
- _member_type_#
alias of
str
- _value2member_map_ = {'': Connector.DEFAULT, 'clearml': Connector.CLEARML}#
- class src.models.dataset.DatasetModel(*, id: str, name: Optional[str] = None, created: Optional[datetime] = None, tags: Optional[List[str]] = None, project: Optional[str] = None, files: Optional[Dict] = None, default_remote: Optional[str] = None, artifacts: Optional[List[Artifact]] = None)[source]#
Bases:
BaseModel
Dataset model.
- _abc_impl = <_abc._abc_data object>#
- created: Optional[datetime]#
- default_remote: Optional[str]#
- files: Optional[Dict]#
- id: str#
- name: Optional[str]#
- project: Optional[str]#
- tags: Optional[List[str]]#
- class src.models.dataset.FindDatasetModel(*, id: Optional[Union[str, List[str]]] = None, name: Optional[str] = None, tags: Optional[List[str]] = None, project: Optional[str] = None)[source]#
Bases:
BaseModel
Request model for finding datasets.
- _abc_impl = <_abc._abc_data object>#
- id: Optional[Union[str, List[str]]]#
- name: Optional[str]#
- project: Optional[str]#
- tags: Optional[List[str]]#
- class src.models.dataset.LinkedDataset(*, connector: Connector, datasetId: str)[source]#
Bases:
BaseModel
Linked dataset model from model creation/update process.
- class Config[source]#
Bases:
object
Pydantic config to allow creation of data model from a JSON object with camelCase keys.
- allow_population_by_field_name = True#
- _abc_impl = <_abc._abc_data object>#
- dataset_id: str#