Source code for encord.objects.project

from __future__ import annotations

from dataclasses import dataclass
from typing import List


[docs]@dataclass class ProjectDataset: dataset_hash: str title: str description: str
[docs] @staticmethod def from_dict(d: dict) -> ProjectDataset: return ProjectDataset( dataset_hash=d["dataset_hash"], title=d["title"], description=d["description"], )
[docs] @classmethod def from_list(cls, l: list) -> List[ProjectDataset]: return [cls.from_dict(i) for i in l]