> 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/pattern-assets-to-a-release.md).

# 패턴: 에셋에서 릴리스까지

Python SDK로 로봇 녹화를 라이브러리에 업로드하고, 데이터셋 버전을 게시해 프로젝트에 연결한 뒤, 검토된 작업을 릴리스로 내보내는 엔드 투 엔드 패턴을 설명합니다.

같은 파일을 여러 프로젝트에서 사용하거나, 모든 릴리스를 정확한 데이터셋 버전까지 추적할 수 있어야 할 때 이 패턴을 사용하세요.

```python
from unitlab import UnitlabClient

client = UnitlabClient()
try:
    # 1. Store the files once in the library.
    uploaded = client.assets.upload("./cell-04", folder="Robot cell 04", tags=["2026-11"])
    if uploaded.failed:
        raise SystemExit(f"{len(uploaded.failed)} files failed to upload")

    # 2. Freeze a curated selection.
    dataset = client.datasets.create("Bin picking - training", folder_ids=[uploaded.folder_id])
    version = dataset.publish_version("v1: cell 04")

    # 3. Label it in a project.
    project = client.projects.get("PROJECT_ID")
    result = project.attach(dataset_versions=[{"dataset_id": dataset.id, "version_number": version.version_number}])
    project.batch_queue(result.batch_queue_id).wait()

    # ...annotate and review in the app...

    # 4. Export reviewed work.
    release = client.releases.create(project, export_type="COCO", completed_only=True)
    print(release.download(dest="./export"))
finally:
    client.close()
```

## 이 순서인 이유 <a href="#why-this-order" id="why-this-order"></a>

| 단계                   | 얻는 것                              |
| -------------------- | --------------------------------- |
| 라이브러리 업로드            | 각 파일의 사본 하나를 여러 프로젝트에서 재사용        |
| 게시된 버전               | 모델 카드에 명시할 수 있는 고정된 파일 목록         |
| 버전 번호로 연결            | 나중에 데이터셋이 바뀌어도 프로젝트는 정확히 그 목록을 사용 |
| `completed_only` 릴리스 | 검토된 항목만 학습에 사용                    |

데이터셋 ID, 버전 번호, 릴리스 ID를 학습 실행 기록과 함께 보관하세요.

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

[데이터셋](https://docs.unitlab.ai/api-sdk-cli/ko/sdks/datasets.md) · [라이브러리 데이터 연결과 해제](https://docs.unitlab.ai/api-sdk-cli/ko/sdks/attach-and-detach-project-sources.md) · [릴리스 생성과 다운로드](https://docs.unitlab.ai/api-sdk-cli/ko/sdks/create-and-download-releases.md)
