개발 · 명령 참조
qzx scaffoldPython
기능
Python 프로그램의 기본 구조를 만듭니다.
명령 성숙도: Alpha
실제 사용과 피드백에 사용할 수 있지만 인터페이스와 동작은 아직 바뀔 수 있습니다. 현재 개발 체크아웃에 대한 평가입니다. 이후의 각 불변 릴리스 태그는 해당 버전에 포함된 정확한 평가를 보존합니다. PyPI 0.2.2.0.15에서 사용할 수 있습니다. 문서는 alpha 체크아웃 0.2.2.0.15에 해당합니다.
동작 및 내장 보호
실제 모드는 요청한 변경 사항을 적용합니다
이 작업은 직접 실행됩니다
필요할 때 네이티브 도구를 사용합니다
네트워크를 사용하지 않고 작동합니다
권한 상승 없이 작동하도록 설계되었습니다
이 안전 분류는 2026-10-08에 Claude Opus 5.5 (Anthropic)가 구현 다이제스트 sha256:207c52ef2cd531e5f2baa76ace2a972a547c1e9d6e642d4f89a1e983451345b6를 기준으로 검토했습니다.
정확한 구문
qzx scaffoldPython <project_name> [path] [with_tests] [create_venv] --json매개변수
밀거나 가로 스크롤 막대를 사용해 모든 열을 확인하세요.
| 이름 | 유형 | 필수 | 기본값 | 설명 |
|---|---|---|---|---|
| project_name | str | 예 | 선언되지 않음 | 생성할 Python 프로젝트 이름 |
| path | str | 아니요 | "." | 프로젝트를 생성할 경로(기본값: 현재 디렉터리) |
| with_tests | bool | 아니요 | true | 테스트 구조(pytest)를 포함할지 여부 |
| create_venv | bool | 아니요 | false | 가상 환경을 생성할지 여부 |
입력 예제
qzx scaffoldPython my_project현재 디렉터리에 "my_project"라는 새 Python 프로젝트 생성
qzx scaffoldPython my_project /path/to/dir true true지정한 디렉터리에 테스트와 가상 환경이 포함된 새 Python 프로젝트 생성
qzx scaffoldPython api_service . false현재 디렉터리에 테스트 없이 "api_service"라는 새 Python 프로젝트 생성
전체 구조화 페이로드를 받으려면 --json을 추가하세요: qzx scaffoldPython <project_name> [path] [with_tests] [create_venv] --json
대표 출력 예제
이 예시 JSON은 현재 구현이 뒷받침하는 결과 계약에서 파생됩니다. 기록된 실행이라고 주장하지 않고 명령이 반환할 수 있는 내용을 보여 주며, 값은 입력, 장비, 권한 및 선택 도구에 따라 달라집니다.
예제 명령: qzx scaffoldPython my_project --json
{
"success": true,
"message": "Creates a basic scaffolding for a Python program. In this illustrative example, the command completed successfully.",
"meta": {
"command": "scaffoldPython",
"command_maturity": {
"stage": "alpha",
"label": "Alpha",
"sequence": 2,
"public_executable": true,
"stability": "interface_may_change",
"summary": "Available for real use and feedback while its interface and behavior can still evolve.",
"promotion_review_required": false,
"assessment_scope": "development_checkout"
},
"duration_ms": 0,
"schema_version": 1
},
"create_venv": true,
"files_created": [
"C:\\project\\example.txt"
],
"name_was_normalized": true,
"next_steps": [
{
"id": "run",
"description": "Example value",
"cwd": "Example value",
"argv": [
"Example value"
]
}
],
"partial": true,
"project_name": "Example value",
"project_path": "C:\\project\\example.txt",
"report": "Analysis complete.\nNo blocking issues were found.",
"requested_project_name": "Example value",
"timestamp": "Example value",
"virtual_environment": {
"requested": true,
"status": "not_requested",
"path": "C:\\project\\example.txt",
"python": "Example value",
"message": "Example value"
},
"warnings": [
"Example value"
],
"with_tests": true
}JSON 결과 계약 보기
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"required": [
"message",
"meta",
"success"
],
"properties": {
"success": {
"type": "boolean"
},
"message": {
"type": "string"
},
"project_name": {
"description": "Normalized project name on success; original input on validation errors."
},
"project_path": {
"type": "string"
},
"with_tests": {
"type": "boolean"
},
"files_created": {
"type": "array",
"items": {
"type": "string"
}
},
"timestamp": {
"type": "string"
},
"partial": {
"type": "boolean"
},
"error": {
"type": "string"
},
"error_code": {
"type": "string"
},
"create_venv": {
"type": "boolean"
},
"requested_project_name": {
"type": "string"
},
"name_was_normalized": {
"type": "boolean"
},
"virtual_environment": {
"type": "object",
"required": [
"requested",
"status"
],
"properties": {
"requested": {
"type": "boolean"
},
"status": {
"enum": [
"not_requested",
"created",
"failed"
]
},
"path": {
"type": "string"
},
"python": {
"type": "string"
},
"message": {
"type": "string"
}
},
"additionalProperties": true,
"allOf": [
{
"if": {
"properties": {
"status": {
"const": "created"
}
}
},
"then": {
"required": [
"path",
"python"
],
"properties": {
"requested": {
"const": true
}
}
}
}
]
},
"warnings": {
"type": "array",
"items": {
"type": "string"
}
},
"report": {
"type": "string"
},
"next_steps": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"description",
"cwd",
"argv"
],
"properties": {
"id": {
"type": "string",
"enum": [
"run",
"install",
"test",
"build"
]
},
"description": {
"type": "string"
},
"cwd": {
"type": "string"
},
"argv": {
"type": "array",
"minItems": 1,
"items": {
"type": "string"
}
}
},
"additionalProperties": true
},
"description": "Suggested argv/cwd actions; QZX has not executed them."
},
"meta": {
"type": "object",
"required": [
"command",
"command_maturity",
"duration_ms",
"schema_version"
],
"properties": {
"command": {
"type": "string"
},
"command_maturity": {
"type": "object",
"required": [
"stage",
"label",
"sequence",
"public_executable",
"stability",
"summary",
"promotion_review_required",
"assessment_scope"
],
"properties": {
"stage": {
"type": "string"
},
"label": {
"type": "string"
},
"sequence": {
"type": "integer"
},
"public_executable": {
"type": "boolean"
},
"stability": {
"type": "string"
},
"summary": {
"type": "string"
},
"promotion_review_required": {
"type": "boolean"
},
"assessment_scope": {
"type": "string"
},
"note": {
"type": "string"
},
"review": {
"type": "object",
"required": [
"reviewed_on",
"rationale",
"evidence"
],
"properties": {
"reviewed_on": {
"type": "string",
"format": "date"
},
"rationale": {
"type": "string"
},
"evidence": {
"type": "array",
"minItems": 1,
"items": {
"type": "string"
}
},
"replacement": {
"type": "string"
}
},
"additionalProperties": false
}
},
"additionalProperties": true
},
"duration_ms": {
"type": "number"
},
"schema_version": {
"type": "integer"
}
},
"additionalProperties": true
}
},
"additionalProperties": true
}오류 및 제한
공개 계약은 실패 시 success=false와 설명적인 message를 요구합니다. 이 카탈로그는 아직 명령별 오류 분류 체계를 선언하지 않으므로 결과를 확인하고 존재하지 않는 코드를 추정하지 마세요.
QZX는 alpha 단계입니다. 선택적 종속성, 권한 및 호스트 기능에 따라 결과가 달라질 수 있습니다.
근거 흐름: 격리된 일회용 대상 필요.
근거 및 출처
- 테스트
- 같은 모듈 이름의 전용 테스트 파일을 찾지 못했지만 테스트 커버리지가 전혀 없다는 뜻은 아닙니다.
- 문서 채널
- 개발 문서 0.2.2.0.15 · main · sha256:b91acee86268edb7cb018a94e089ff8e95835eda3f2cf08b39796c0ab9654693
- 제공 여부
- 0.2.2.0.15 또는 이전
계속 살펴보기
관련 명령
이 명령들도 개발 범주에 속합니다. 비교하여 작업에 가장 적합한 작업을 선택하세요.