> For the complete documentation index, see [llms.txt](https://docs.unitlab.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.unitlab.ai/api-sdk-cli/ko/sdks/data-units.md).

# Data Unit

Python SDK로 프로젝트의 작업 항목(Data Unit)을 조회하고, 데이터 유형·상태·업로드별로 필터링하며, 단일 항목과 Data Group을 읽는 방법을 설명합니다.

Data Unit은 프로젝트의 작업 항목 하나입니다. 단일 파일이거나, 여러 파일을 함께 라벨링하는 Data Group입니다.

```python
units = project.data_units(data_type="image", status="annotate")
for unit in units:
    print(unit.kind, unit.name, unit.status, unit.workflow_task_id)

unit = client.get_data_unit(project.id, units[0].id)
```

## 필터 <a href="#filters" id="filters"></a>

| 인자            | 값                                                                                                                                  |
| ------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| `search`      | 파일 이름의 일부                                                                                                                          |
| `data_type`   | `image`, `video`, `audio`, `text`, `medical`, `document`, `timeseries`, `tabular`, `geospatial`, `pathology`, `html`, `pointcloud` |
| `status`      | `new`, `processing`, `annotate`, `review`, `ai_review`, `complete`, `archived`, `error`                                            |
| `batch_queue` | 특정 업로드 하나를 조회할 Batch Queue ID                                                                                                      |
| `kind`        | `datasource`(단일 파일) 또는 `group`(Data Group)                                                                                         |

목록은 모든 페이지를 자동으로 따라가며 가져옵니다.

## 종류 <a href="#kinds" id="kinds"></a>

| `kind`       | 설명                                   | `items`    |
| ------------ | ------------------------------------ | ---------- |
| `datasource` | 단일 파일                                | 비어 있음      |
| `group`      | 로봇 셀 하나를 촬영한 카메라 뷰 4개와 같은 Data Group | 타일마다 요약 1개 |

그룹 안의 파일은 최상위 목록에 다시 나타나지 않습니다. 그룹은 한 번만 집계하세요.

## 필드 <a href="#fields" id="fields"></a>

| 필드                                                   | 의미                        |
| ---------------------------------------------------- | ------------------------- |
| `id`, `name`, `data_type`, `kind`                    | 식별 정보                     |
| `status`                                             | 항목의 워크플로 상태               |
| `workflow_task_id`, `stage_id`, `assigned_to_id`     | 현재 작업, 단계, 담당자            |
| `batch_queue_id`                                     | 항목이 들어온 업로드               |
| `datasource_id`, `group_id`                          | 기반이 되는 파일 또는 그룹           |
| `priority`, `created_at`, `file_size`, `folder_path` | 세부 정보                     |
| `thumbnail_url`                                      | 미리 보기 링크                  |
| `metadata`                                           | 프레임 수나 페이지 수 같은 미디어 메타데이터 |

처리에 실패한 LiDAR 씬은 목록에 나타나지 않습니다. 해당 Batch Queue에서 확인하세요. [LiDAR 씬 업로드](https://docs.unitlab.ai/api-sdk-cli/ko/sdks/lidar-scene-uploads.md)를 참고하세요.

## 관련 문서 <a href="#related" id="related"></a>

[프로젝트](https://docs.unitlab.ai/api-sdk-cli/ko/sdks/projects.md) · [Batch Queue와 처리 상태](https://docs.unitlab.ai/api-sdk-cli/ko/sdks/batch-queues-and-processing.md) · [워크플로 단계와 작업](https://docs.unitlab.ai/api-sdk-cli/ko/sdks/workflow-stages-and-tasks.md)
