> 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/assets-and-custom-metadata.md).

# 에셋과 사용자 지정 메타데이터

Python SDK로 워크스페이스 라이브러리(Assets)에 파일을 업로드하고, 태그와 사용자 지정 메타데이터를 설정하며, 처리 상태와 시계열 열 구성을 관리하는 방법을 설명합니다.

Assets는 워크스페이스 라이브러리입니다. 파일을 한 번 저장해 두고 여러 데이터셋과 프로젝트에서 재사용합니다. 여러 팀이나 프로젝트가 같은 로봇 녹화를 라벨링한다면 Assets에 업로드하세요.

## 라이브러리에 업로드 <a href="#upload-to-the-library" id="upload-to-the-library"></a>

```python
result = client.assets.upload(
    "./cell-04",
    folder="Robot cell 04",                 # created or reused
    tags=["site-berlin", "2026-11"],
    custom_metadata={"robot": "UR10e", "shift": "night"},
)
print(result.uploaded, "uploaded to", result.folder_name)
for failure in result.failed:
    print("Not uploaded:", failure.path, failure.error)
```

| 인자                               | 용도                                                                                     |
| -------------------------------- | -------------------------------------------------------------------------------------- |
| `folder` 또는 `folder_id`          | 대상 폴더를 이름(생성 또는 재사용) 또는 ID로 지정합니다. 둘 중 하나만 전달하세요. 둘 다 없으면 `Untitled upload` 폴더에 저장됩니다. |
| `path`                           | 대상 폴더 안의 하위 폴더 경로(예: `cameras/front`)                                                  |
| `tags`                           | 모든 파일에 추가할 태그                                                                          |
| `custom_metadata`                | 모든 파일에 저장할 JSON 객체                                                                     |
| `generic_type`                   | `pointcloud`나 `tabular` 같은 유형을 강제 지정                                                   |
| `primary_column`                 | 테이블형 CSV의 텍스트 열                                                                        |
| `defer_timeseries_configuration` | 시계열 CSV를 지금 업로드하고 열은 나중에 선택                                                            |
| `split_sensor_folders`           | LiDAR 전용                                                                               |

## 처리 상태 확인 <a href="#follow-processing" id="follow-processing"></a>

```python
asset = result.assets[0]
status = asset.wait()            # default timeout 7 hours, for large rasters
if status.failed:
    asset.retry()                # lidar scenes and tiled rasters

asset = client.assets.asset("ASSET_ID")   # a handle by ID
print(asset.status().status)
```

## 사용자 지정 메타데이터 <a href="#custom-metadata" id="custom-metadata"></a>

```python
asset.update_custom_metadata({"robot": "UR10e", "lighting": "low"})
client.assets.set_custom_metadata("ASSET_ID", None)    # clear it
```

새 값은 기존 값을 대체합니다. 지우려면 `None`을 전달하세요.

## 시계열 열 <a href="#time-series-columns" id="time-series-columns"></a>

```python
asset.configure_timeseries(x_column="timestamp", channels=["joint_1", "joint_2", "gripper"])
```

`defer_timeseries_configuration=True`로 업로드한 뒤에 사용합니다.

## 에셋 필드 <a href="#asset-fields" id="asset-fields"></a>

| 필드                                                     | 의미                                    |
| ------------------------------------------------------ | ------------------------------------- |
| `id`, `data_type`, `folder_id`, `file_size`, `created` | 식별 정보와 위치                             |
| `file_name`                                            | 저장된 이름. 릴리스에서 사용하므로 파일 매칭에는 이 값을 쓰세요. |
| `uploaded_name`                                        | 앱에 표시되는 이름                            |
| `tags`, `custom_metadata`                              | 사용자가 지정한 태그와 메타데이터                    |
| `upload_status`                                        | 처리 상태                                 |

라이브러리에 업로드한 파일은 `file_name`과 `uploaded_name`이 같습니다. 프로젝트에 직접 업로드한 파일은 두 값이 다릅니다.

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

[폴더](https://docs.unitlab.ai/api-sdk-cli/ko/sdks/folders.md) · [데이터셋](https://docs.unitlab.ai/api-sdk-cli/ko/sdks/datasets.md) · [CLI: 에셋과 폴더](https://docs.unitlab.ai/api-sdk-cli/ko/clis/cli-assets-and-folders.md)
