mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
All 181 docs markdown files translated into 20 languages (apps/docs/<locale>/**). Companion to the i18n code PR; admin-merged because the file count exceeds GitHub's per-PR CI trigger limit. Validated by pnpm i18n:check (all surfaces, 0 stale/missing) and a clean all-locale docs build.
1.8 KiB
1.8 KiB
description, i18n_source_hash, i18n_provenance, i18n_output_hash
| description | i18n_source_hash | i18n_provenance | i18n_output_hash |
|---|---|---|---|
| 행 수를 기준으로 CSV를 더 작은 파일로 분할합니다. | a35dce4a99a3 | human | c13f60413116 |
Split CSV
큰 CSV 또는 TSV 파일을 행 수를 기준으로 더 작은 파일로 분할합니다. 분할된 부분들을 담은 ZIP 아카이브를 반환합니다.
API 엔드포인트
POST /api/v1/tools/files/split-csv
CSV 파일과 JSON settings 필드가 포함된 multipart form data를 받습니다.
매개변수
| 매개변수 | 유형 | 필수 | 기본값 | 설명 |
|---|---|---|---|---|
| rowsPerFile | integer | 아니요 | 1000 |
출력 파일당 데이터 행 수 (1~1,000,000) |
| keepHeader | boolean | 아니요 | true |
각 출력 파일에 헤더 행을 반복 |
요청 예시
curl -X POST http://localhost:1349/api/v1/tools/files/split-csv \
-H "Authorization: Bearer si_your-api-key" \
-F "file=@large-dataset.csv" \
-F 'settings={"rowsPerFile": 500, "keepHeader": true}'
응답 예시
{
"jobId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"downloadUrl": "/api/v1/download/a1b2c3d4-e5f6-7890-abcd-ef1234567890/large-dataset_parts.zip",
"originalSize": 1048576,
"processedSize": 1050000
}
참고 사항
- 출력은 항상 분할된 CSV 부분들을 담은 ZIP 아카이브이며, 순차적으로 이름이 지정됩니다(예:
part-1.csv,part-2.csv). keepHeader이(가)true일 때, 각 부분에 원본 헤더 행이 포함되어 각 파일을 독립적으로 사용할 수 있습니다.- CSV와 TSV 파일 모두 입력으로 허용됩니다.
- 행 수는 데이터 행만을 의미하며, 헤더 행은 계산되지 않습니다.