archpilot 0.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- archpilot-0.2.0/.env.example +10 -0
- archpilot-0.2.0/.gitignore +33 -0
- archpilot-0.2.0/CLAUDE.md +221 -0
- archpilot-0.2.0/LICENSE +21 -0
- archpilot-0.2.0/PKG-INFO +136 -0
- archpilot-0.2.0/README.md +80 -0
- archpilot-0.2.0/docs/ARCHITECTURE.md +471 -0
- archpilot-0.2.0/docs/ONTOLOGY.md +484 -0
- archpilot-0.2.0/docs/SPEC.md +506 -0
- archpilot-0.2.0/docs/USER_GUIDE.md +820 -0
- archpilot-0.2.0/examples/legacy_bank.yaml +92 -0
- archpilot-0.2.0/examples/legacy_ecommerce.yaml +81 -0
- archpilot-0.2.0/pyproject.toml +100 -0
- archpilot-0.2.0/src/archpilot/__init__.py +3 -0
- archpilot-0.2.0/src/archpilot/cli/__init__.py +0 -0
- archpilot-0.2.0/src/archpilot/cli/cmd_analyze.py +76 -0
- archpilot-0.2.0/src/archpilot/cli/cmd_drawio.py +293 -0
- archpilot-0.2.0/src/archpilot/cli/cmd_ingest.py +79 -0
- archpilot-0.2.0/src/archpilot/cli/cmd_init.py +45 -0
- archpilot-0.2.0/src/archpilot/cli/cmd_modernize.py +105 -0
- archpilot-0.2.0/src/archpilot/cli/cmd_serve.py +105 -0
- archpilot-0.2.0/src/archpilot/cli/main.py +49 -0
- archpilot-0.2.0/src/archpilot/config.py +55 -0
- archpilot-0.2.0/src/archpilot/core/__init__.py +0 -0
- archpilot-0.2.0/src/archpilot/core/diff.py +80 -0
- archpilot-0.2.0/src/archpilot/core/drawio_config.py +330 -0
- archpilot-0.2.0/src/archpilot/core/models.py +165 -0
- archpilot-0.2.0/src/archpilot/core/parser.py +142 -0
- archpilot-0.2.0/src/archpilot/core/tech_ontology.py +138 -0
- archpilot-0.2.0/src/archpilot/llm/__init__.py +0 -0
- archpilot-0.2.0/src/archpilot/llm/analyzer.py +21 -0
- archpilot-0.2.0/src/archpilot/llm/client.py +138 -0
- archpilot-0.2.0/src/archpilot/llm/modernizer.py +68 -0
- archpilot-0.2.0/src/archpilot/llm/parser_agent.py +21 -0
- archpilot-0.2.0/src/archpilot/llm/prompts.py +308 -0
- archpilot-0.2.0/src/archpilot/renderers/__init__.py +3 -0
- archpilot-0.2.0/src/archpilot/renderers/base.py +75 -0
- archpilot-0.2.0/src/archpilot/renderers/drawio.py +101 -0
- archpilot-0.2.0/src/archpilot/renderers/drawio_library.py +75 -0
- archpilot-0.2.0/src/archpilot/renderers/drawio_parser.py +296 -0
- archpilot-0.2.0/src/archpilot/renderers/mermaid.py +92 -0
- archpilot-0.2.0/src/archpilot/renderers/mingrammer.py +165 -0
- archpilot-0.2.0/src/archpilot/ui/__init__.py +0 -0
- archpilot-0.2.0/src/archpilot/ui/server.py +515 -0
- archpilot-0.2.0/src/archpilot/ui/session.py +62 -0
- archpilot-0.2.0/src/archpilot/ui/templates/app.html.j2 +2339 -0
- archpilot-0.2.0/src/archpilot/ui/templates/slides.html.j2 +577 -0
- archpilot-0.2.0/tests/conftest.py +41 -0
- archpilot-0.2.0/tests/test_diff.py +65 -0
- archpilot-0.2.0/tests/test_drawio_parser.py +325 -0
- archpilot-0.2.0/tests/test_parser.py +94 -0
- archpilot-0.2.0/tests/test_renderers.py +57 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Environment
|
|
2
|
+
.env
|
|
3
|
+
.venv/
|
|
4
|
+
__pycache__/
|
|
5
|
+
*.pyc
|
|
6
|
+
*.pyo
|
|
7
|
+
.python-version
|
|
8
|
+
|
|
9
|
+
# Build
|
|
10
|
+
dist/
|
|
11
|
+
build/
|
|
12
|
+
*.egg-info/
|
|
13
|
+
.eggs/
|
|
14
|
+
|
|
15
|
+
# Output
|
|
16
|
+
output/
|
|
17
|
+
dist/
|
|
18
|
+
|
|
19
|
+
# IDE
|
|
20
|
+
.vscode/
|
|
21
|
+
.idea/
|
|
22
|
+
*.swp
|
|
23
|
+
|
|
24
|
+
# OS
|
|
25
|
+
.DS_Store
|
|
26
|
+
Thumbs.db
|
|
27
|
+
|
|
28
|
+
# Test
|
|
29
|
+
.pytest_cache/
|
|
30
|
+
.coverage
|
|
31
|
+
htmlcov/
|
|
32
|
+
.mypy_cache/
|
|
33
|
+
.ruff_cache/
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
# ArchPilot — CLAUDE.md `v0.2.0`
|
|
2
|
+
|
|
3
|
+
## 프로젝트 개요
|
|
4
|
+
|
|
5
|
+
Legacy 시스템 구성을 코드화(다이어그램)하고, 자연어 요구사항을 기반으로 현대화된 신규 시스템을 설계·시각화하는 CLI 도구.
|
|
6
|
+
|
|
7
|
+
- **패키지명**: `archpilot`
|
|
8
|
+
- **PyPI**: `pip install archpilot`
|
|
9
|
+
- **진입점**: `archpilot` CLI (Typer 기반)
|
|
10
|
+
- **Python**: 3.11+
|
|
11
|
+
- **LLM**: OpenAI GPT-4o (`OPENAI_API_KEY` via `.env`)
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## 디렉토리 구조
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
archpilot/
|
|
19
|
+
├── src/
|
|
20
|
+
│ └── archpilot/
|
|
21
|
+
│ ├── __init__.py
|
|
22
|
+
│ ├── cli/
|
|
23
|
+
│ │ ├── __init__.py
|
|
24
|
+
│ │ ├── main.py # Typer app 진입점
|
|
25
|
+
│ │ ├── cmd_init.py # archpilot init
|
|
26
|
+
│ │ ├── cmd_ingest.py # archpilot ingest
|
|
27
|
+
│ │ ├── cmd_analyze.py # archpilot analyze
|
|
28
|
+
│ │ ├── cmd_modernize.py # archpilot modernize
|
|
29
|
+
│ │ ├── cmd_serve.py # archpilot serve / export
|
|
30
|
+
│ │ └── cmd_drawio.py # archpilot drawio (setup/edit/watch/export)
|
|
31
|
+
│ ├── core/
|
|
32
|
+
│ │ ├── models.py # Pydantic SystemModel, Component, Connection, AnalysisResult
|
|
33
|
+
│ │ ├── parser.py # YAML/JSON/텍스트 → SystemModel
|
|
34
|
+
│ │ ├── diff.py # Legacy vs Modern 비교 유틸
|
|
35
|
+
│ │ ├── tech_ontology.py # 기술 스택 온톨로지 (자동 타입 추론)
|
|
36
|
+
│ │ └── drawio_config.py # draw.io Desktop 설정/LevelDB 통합
|
|
37
|
+
│ ├── llm/
|
|
38
|
+
│ │ ├── client.py # OpenAI 비동기 클라이언트 래퍼 (스트리밍 지원)
|
|
39
|
+
│ │ ├── prompts.py # 프롬프트 템플릿 (상수)
|
|
40
|
+
│ │ ├── analyzer.py # 레거시 시스템 분석
|
|
41
|
+
│ │ ├── modernizer.py # 현대화 설계 생성
|
|
42
|
+
│ │ └── parser_agent.py # 자연어 텍스트 → SystemModel
|
|
43
|
+
│ ├── renderers/
|
|
44
|
+
│ │ ├── base.py # BaseRenderer 추상 클래스
|
|
45
|
+
│ │ ├── mermaid.py # SystemModel → Mermaid DSL
|
|
46
|
+
│ │ ├── mingrammer.py # SystemModel → diagrams(mingrammer) → PNG/SVG
|
|
47
|
+
│ │ ├── drawio.py # SystemModel → draw.io XML
|
|
48
|
+
│ │ ├── drawio_parser.py # draw.io XML → SystemModel (역방향 파서)
|
|
49
|
+
│ │ └── drawio_library.py# ArchPilot 컴포넌트 라이브러리 파일 생성
|
|
50
|
+
│ ├── ui/
|
|
51
|
+
│ │ ├── server.py # FastAPI 인터랙티브 UI 서버 (SSE 스트리밍)
|
|
52
|
+
│ │ ├── session.py # 인메모리 세션 관리
|
|
53
|
+
│ │ └── templates/
|
|
54
|
+
│ │ ├── app.html.j2 # 인터랙티브 웹 앱
|
|
55
|
+
│ │ └── slides.html.j2 # reveal.js 발표 슬라이드
|
|
56
|
+
│ └── config.py # pydantic-settings, .env 로드
|
|
57
|
+
├── tests/
|
|
58
|
+
│ ├── conftest.py
|
|
59
|
+
│ ├── test_parser.py
|
|
60
|
+
│ ├── test_renderers.py
|
|
61
|
+
│ ├── test_drawio_parser.py
|
|
62
|
+
│ └── test_diff.py
|
|
63
|
+
├── examples/
|
|
64
|
+
│ ├── legacy_ecommerce.yaml
|
|
65
|
+
│ └── legacy_bank.yaml
|
|
66
|
+
├── docs/
|
|
67
|
+
│ ├── SPEC.md # 기능 명세
|
|
68
|
+
│ ├── ARCHITECTURE.md # 내부 아키텍처
|
|
69
|
+
│ ├── ONTOLOGY.md # 기술 온톨로지 & 입력 표준화 상세
|
|
70
|
+
│ └── USER_GUIDE.md # 입력 → 발표까지 사용자 가이드
|
|
71
|
+
├── pyproject.toml
|
|
72
|
+
├── .env.example
|
|
73
|
+
└── README.md
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## 개발 규칙
|
|
79
|
+
|
|
80
|
+
### 언어 & 포맷
|
|
81
|
+
- Python 3.11, 타입 힌트 필수
|
|
82
|
+
- 포매터: `ruff format`, 린터: `ruff check`
|
|
83
|
+
- 타입 체커: `mypy --strict` (llm/, core/ 우선)
|
|
84
|
+
- 커밋 전 `pre-commit run --all-files` 통과 필수
|
|
85
|
+
|
|
86
|
+
### 데이터 모델
|
|
87
|
+
- 모든 내부 모델은 `core/models.py`의 `SystemModel` 사용
|
|
88
|
+
- 렌더러는 반드시 `BaseRenderer`를 상속하고 `render(model) -> str` 구현
|
|
89
|
+
- LLM 응답은 항상 스트리밍 SSE + Pydantic 파싱
|
|
90
|
+
|
|
91
|
+
### LLM 호출
|
|
92
|
+
- `llm/client.py`의 `LLMClient` / `get_async_client()` 만 사용 (직접 `openai.OpenAI()` 호출 금지)
|
|
93
|
+
- 프롬프트는 `llm/prompts.py`에 상수로 정의 (하드코딩 금지)
|
|
94
|
+
- API 오류는 `tenacity`로 최대 3회 재시도
|
|
95
|
+
|
|
96
|
+
### CLI
|
|
97
|
+
- 모든 커맨드는 `cmd_*.py`에 분리
|
|
98
|
+
- 출력은 `rich` 사용 (print 직접 사용 금지)
|
|
99
|
+
- 에러는 `typer.echo(err=True)` + `raise typer.Exit(1)`
|
|
100
|
+
|
|
101
|
+
### 테스트
|
|
102
|
+
- LLM 호출은 `pytest-mock`으로 모킹
|
|
103
|
+
- 렌더러 테스트는 출력 문자열 스냅샷 비교
|
|
104
|
+
- `pytest -x` 기준 전체 통과 유지
|
|
105
|
+
|
|
106
|
+
### 환경 변수
|
|
107
|
+
- `.env` 파일로만 관리, 코드에 키 하드코딩 금지
|
|
108
|
+
- `config.py`의 `Settings` 객체를 통해서만 접근
|
|
109
|
+
- `.env`는 절대 커밋 금지 (`.gitignore` 등록)
|
|
110
|
+
|
|
111
|
+
---
|
|
112
|
+
|
|
113
|
+
## 핵심 CLI 명령어
|
|
114
|
+
|
|
115
|
+
```bash
|
|
116
|
+
archpilot init # .env 초기화 마법사
|
|
117
|
+
archpilot ingest <file> [options] # 레거시 시스템 파일 주입
|
|
118
|
+
archpilot analyze <system.json> # LLM 분석 보고서 생성
|
|
119
|
+
archpilot modernize <system.json> # LLM 현대화 설계 생성
|
|
120
|
+
archpilot serve <output_dir> # 인터랙티브 UI + reveal.js 서버 실행
|
|
121
|
+
archpilot export <system.json> # system.json → .drawio 파일 내보내기
|
|
122
|
+
|
|
123
|
+
# draw.io Desktop 통합 서브커맨드
|
|
124
|
+
archpilot drawio setup # draw.io Desktop에 ArchPilot 라이브러리 설치
|
|
125
|
+
archpilot drawio edit [--output] # draw.io Desktop으로 다이어그램 편집
|
|
126
|
+
archpilot drawio watch <file> # draw.io 파일 변경 자동 감시·반영
|
|
127
|
+
archpilot drawio export <system.json> # system.json → .drawio 내보내기
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
---
|
|
131
|
+
|
|
132
|
+
## 의존성 (주요)
|
|
133
|
+
|
|
134
|
+
| 패키지 | 용도 |
|
|
135
|
+
|--------|------|
|
|
136
|
+
| `typer[all]` | CLI 프레임워크 |
|
|
137
|
+
| `rich` | 터미널 출력 |
|
|
138
|
+
| `openai>=1.30` | LLM 클라이언트 (비동기 스트리밍) |
|
|
139
|
+
| `python-dotenv` | .env 로드 |
|
|
140
|
+
| `pydantic>=2.0` | 데이터 모델 |
|
|
141
|
+
| `pydantic-settings` | 설정 관리 |
|
|
142
|
+
| `pyyaml` | YAML 파싱 |
|
|
143
|
+
| `diagrams>=0.23` | mingrammer 다이어그램 |
|
|
144
|
+
| `jinja2` | HTML 템플릿 |
|
|
145
|
+
| `fastapi>=0.111` | 인터랙티브 UI + API 서버 |
|
|
146
|
+
| `uvicorn[standard]` | ASGI 서버 |
|
|
147
|
+
| `python-multipart` | 파일 업로드 |
|
|
148
|
+
| `tenacity` | LLM 재시도 |
|
|
149
|
+
| `watchdog>=4.0` | draw.io 파일 변경 감시 |
|
|
150
|
+
|
|
151
|
+
---
|
|
152
|
+
|
|
153
|
+
## .env 구조
|
|
154
|
+
|
|
155
|
+
```env
|
|
156
|
+
OPENAI_API_KEY=sk-...
|
|
157
|
+
OPENAI_MODEL=gpt-4o
|
|
158
|
+
OPENAI_MAX_TOKENS=4096
|
|
159
|
+
ARCHPILOT_OUTPUT_DIR=./output
|
|
160
|
+
ARCHPILOT_DIAGRAM_FORMAT=png
|
|
161
|
+
ARCHPILOT_SERVER_HOST=127.0.0.1
|
|
162
|
+
ARCHPILOT_SERVER_PORT=8080
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
---
|
|
166
|
+
|
|
167
|
+
## 출력 디렉토리 구조 (output/)
|
|
168
|
+
|
|
169
|
+
```
|
|
170
|
+
output/
|
|
171
|
+
├── system.json # 파싱된 SystemModel (중간 산출물)
|
|
172
|
+
├── legacy/
|
|
173
|
+
│ ├── diagram.mmd # Mermaid DSL
|
|
174
|
+
│ ├── diagram.png # diagrams 렌더링
|
|
175
|
+
│ └── diagram.drawio # draw.io XML
|
|
176
|
+
├── analysis.json # LLM 분석 결과
|
|
177
|
+
├── modern/
|
|
178
|
+
│ ├── system.json # 현대화된 SystemModel
|
|
179
|
+
│ ├── diagram.mmd
|
|
180
|
+
│ ├── diagram.png
|
|
181
|
+
│ ├── diagram.drawio
|
|
182
|
+
│ └── migration_plan.md # 마이그레이션 로드맵 (마크다운)
|
|
183
|
+
└── slides/
|
|
184
|
+
└── index.html # reveal.js 발표 자료 (정적 export 시)
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
---
|
|
188
|
+
|
|
189
|
+
## UI 서버 API 엔드포인트
|
|
190
|
+
|
|
191
|
+
| 메서드 | 경로 | 설명 |
|
|
192
|
+
|--------|------|------|
|
|
193
|
+
| GET | `/` | 인터랙티브 웹 앱 |
|
|
194
|
+
| GET | `/slides` | reveal.js 발표 슬라이드 |
|
|
195
|
+
| GET | `/api/state` | 현재 세션 상태 조회 |
|
|
196
|
+
| DELETE | `/api/state` | 세션 초기화 |
|
|
197
|
+
| POST | `/api/ingest` | YAML/JSON/텍스트 주입 |
|
|
198
|
+
| POST | `/api/ingest/file` | 파일 업로드 주입 |
|
|
199
|
+
| POST | `/api/ingest/drawio` | draw.io XML 주입 |
|
|
200
|
+
| POST | `/api/chat/ingest/stream` | 대화형 시스템 입력 (SSE) |
|
|
201
|
+
| GET | `/api/analyze/stream` | LLM 분석 스트리밍 (SSE) |
|
|
202
|
+
| POST | `/api/modernize/stream` | LLM 현대화 설계 스트리밍 (SSE) |
|
|
203
|
+
| GET | `/api/diagram/{step}` | 다이어그램 다운로드 (mermaid/drawio) |
|
|
204
|
+
|
|
205
|
+
---
|
|
206
|
+
|
|
207
|
+
## 📝 변경 이력
|
|
208
|
+
|
|
209
|
+
### v0.2.0 (2026-03-13) — 아키텍처 문서화 완료 및 PyPI 배포 준비
|
|
210
|
+
|
|
211
|
+
- ✨ `core/tech_ontology.py` — TechOntology 설계 (70+ 기술 스택 자동 타입 추론)
|
|
212
|
+
- ✨ `renderers/drawio_parser.py` — draw.io XML → SystemModel 역방향 파서
|
|
213
|
+
- ✨ `renderers/drawio_library.py` — draw.io Desktop 컴포넌트 라이브러리 생성
|
|
214
|
+
- ✨ `core/drawio_config.py` — Electron LevelDB 직접 주입으로 draw.io Desktop 설정 자동화
|
|
215
|
+
- ✨ `ui/server.py` — Flask → FastAPI + SSE 스트리밍 전환
|
|
216
|
+
- ✨ `ui/session.py` — 인메모리 세션 관리
|
|
217
|
+
- ✨ `archpilot drawio export` — draw.io → system.json 변환 커맨드 추가
|
|
218
|
+
- 📝 `docs/ARCHITECTURE.md` — TechOntology·DrawioParser·DrawioConfig·FastAPI 섹션 신규 작성
|
|
219
|
+
- 📝 `docs/ONTOLOGY.md` — 입력 표준화 파이프라인 및 온톨로지 상세 문서 신규 작성
|
|
220
|
+
- 📝 `docs/USER_GUIDE.md` — 5가지 입력 시나리오 실전 가이드 신규 작성
|
|
221
|
+
- 🔧 `pyproject.toml` — PyPI 배포용 메타데이터 완성 (classifiers, keywords, authors)
|
archpilot-0.2.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Sungwoo Kim
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
archpilot-0.2.0/PKG-INFO
ADDED
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: archpilot
|
|
3
|
+
Version: 0.2.0
|
|
4
|
+
Summary: 레거시 시스템 구성을 다이어그램으로 코드화하고 AI 기반으로 현대화 아키텍처를 설계·시각화하는 CLI 도구
|
|
5
|
+
Project-URL: Homepage, https://github.com/bullpeng72/ArchPilot
|
|
6
|
+
Project-URL: Repository, https://github.com/bullpeng72/ArchPilot
|
|
7
|
+
Project-URL: Bug Tracker, https://github.com/bullpeng72/ArchPilot/issues
|
|
8
|
+
Project-URL: Changelog, https://github.com/bullpeng72/ArchPilot/blob/main/README.md
|
|
9
|
+
Author-email: Sungwoo Kim <sungwoo.kim@gmail.com>
|
|
10
|
+
Maintainer-email: Sungwoo Kim <sungwoo.kim@gmail.com>
|
|
11
|
+
License-Expression: MIT
|
|
12
|
+
License-File: LICENSE
|
|
13
|
+
Keywords: ai,architecture,cli,cloud,diagram,diagrams,drawio,fastapi,infrastructure,legacy,llm,mermaid,microservices,migration,modernization,openai,reveal.js,system-design
|
|
14
|
+
Classifier: Development Status :: 3 - Alpha
|
|
15
|
+
Classifier: Environment :: Console
|
|
16
|
+
Classifier: Environment :: Web Environment
|
|
17
|
+
Classifier: Framework :: FastAPI
|
|
18
|
+
Classifier: Intended Audience :: Developers
|
|
19
|
+
Classifier: Intended Audience :: Information Technology
|
|
20
|
+
Classifier: Intended Audience :: System Administrators
|
|
21
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
22
|
+
Classifier: Natural Language :: Korean
|
|
23
|
+
Classifier: Operating System :: OS Independent
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
27
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
28
|
+
Classifier: Topic :: Scientific/Engineering :: Visualization
|
|
29
|
+
Classifier: Topic :: Software Development :: Documentation
|
|
30
|
+
Classifier: Topic :: System :: Systems Administration
|
|
31
|
+
Classifier: Typing :: Typed
|
|
32
|
+
Requires-Python: >=3.11
|
|
33
|
+
Requires-Dist: diagrams>=0.23
|
|
34
|
+
Requires-Dist: fastapi>=0.111
|
|
35
|
+
Requires-Dist: jinja2>=3.1
|
|
36
|
+
Requires-Dist: openai<2,>=1.30
|
|
37
|
+
Requires-Dist: pydantic-settings<3,>=2.0
|
|
38
|
+
Requires-Dist: pydantic<3,>=2.0
|
|
39
|
+
Requires-Dist: python-dotenv<2,>=1.0
|
|
40
|
+
Requires-Dist: python-multipart>=0.0.9
|
|
41
|
+
Requires-Dist: pyyaml>=6.0
|
|
42
|
+
Requires-Dist: rich>=13.0
|
|
43
|
+
Requires-Dist: tenacity>=8.0
|
|
44
|
+
Requires-Dist: typer[all]>=0.12
|
|
45
|
+
Requires-Dist: uvicorn[standard]>=0.30
|
|
46
|
+
Requires-Dist: watchdog>=4.0
|
|
47
|
+
Provides-Extra: dev
|
|
48
|
+
Requires-Dist: build>=1.0; extra == 'dev'
|
|
49
|
+
Requires-Dist: mypy>=1.10; extra == 'dev'
|
|
50
|
+
Requires-Dist: pre-commit>=3.7; extra == 'dev'
|
|
51
|
+
Requires-Dist: pytest-mock>=3.12; extra == 'dev'
|
|
52
|
+
Requires-Dist: pytest>=8.0; extra == 'dev'
|
|
53
|
+
Requires-Dist: ruff>=0.4; extra == 'dev'
|
|
54
|
+
Requires-Dist: twine>=5.0; extra == 'dev'
|
|
55
|
+
Description-Content-Type: text/markdown
|
|
56
|
+
|
|
57
|
+
# ArchPilot
|
|
58
|
+
|
|
59
|
+

|
|
60
|
+

|
|
61
|
+

|
|
62
|
+
|
|
63
|
+
Legacy 시스템 구성을 다이어그램으로 코드화하고, AI 기반으로 현대화된 아키텍처를 설계·시각화하는 CLI 도구.
|
|
64
|
+
|
|
65
|
+
## 설치
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
pip install archpilot
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## 빠른 시작
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
# 1. 초기화 (.env 생성 — OpenAI API Key 입력)
|
|
75
|
+
archpilot init
|
|
76
|
+
|
|
77
|
+
# 2. 레거시 시스템 다이어그램화
|
|
78
|
+
archpilot ingest examples/legacy_ecommerce.yaml
|
|
79
|
+
|
|
80
|
+
# 3. AI 분석
|
|
81
|
+
archpilot analyze output/system.json
|
|
82
|
+
|
|
83
|
+
# 4. 현대화 설계
|
|
84
|
+
archpilot modernize output/system.json -r "AWS 마이크로서비스, Kubernetes, Redis"
|
|
85
|
+
|
|
86
|
+
# 5. 인터랙티브 UI + 발표 자료 서버
|
|
87
|
+
archpilot serve output/
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
## draw.io Desktop 통합
|
|
91
|
+
|
|
92
|
+
draw.io에서 직접 아키텍처를 그리고 ArchPilot으로 분석할 수 있습니다.
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
# ArchPilot 컴포넌트 라이브러리를 draw.io Desktop에 설치
|
|
96
|
+
archpilot drawio setup
|
|
97
|
+
|
|
98
|
+
# draw.io Desktop으로 다이어그램 열기 + 변경 자동 감지
|
|
99
|
+
archpilot drawio edit --output output/
|
|
100
|
+
|
|
101
|
+
# draw.io 파일 변경 감시 (저장 시 자동 반영)
|
|
102
|
+
archpilot drawio watch output/legacy/diagram.drawio
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
## 전체 CLI 명령어
|
|
106
|
+
|
|
107
|
+
```
|
|
108
|
+
archpilot init .env 초기화 마법사
|
|
109
|
+
archpilot ingest <file> 레거시 시스템 파일 주입 (YAML/JSON/텍스트)
|
|
110
|
+
archpilot analyze <system.json> LLM 분석 보고서 생성
|
|
111
|
+
archpilot modernize <system.json> LLM 현대화 설계 생성
|
|
112
|
+
archpilot serve <output_dir> 인터랙티브 UI 서버 실행
|
|
113
|
+
archpilot export [output_dir] 발표 슬라이드 → 정적 HTML 내보내기 (dist/)
|
|
114
|
+
archpilot drawio setup draw.io Desktop 라이브러리 설치
|
|
115
|
+
archpilot drawio edit draw.io Desktop으로 편집
|
|
116
|
+
archpilot drawio watch <file> 파일 변경 자동 감시
|
|
117
|
+
archpilot drawio export <file> draw.io → system.json 변환
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
## 요구사항
|
|
121
|
+
|
|
122
|
+
- Python 3.11+
|
|
123
|
+
- OpenAI API Key
|
|
124
|
+
- Graphviz (PNG 출력 시)
|
|
125
|
+
- draw.io Desktop (drawio 통합 기능 사용 시)
|
|
126
|
+
|
|
127
|
+
## 변경 이력
|
|
128
|
+
|
|
129
|
+
### v0.2.0 (2026-03-13)
|
|
130
|
+
|
|
131
|
+
- draw.io XML → SystemModel 역방향 파서 (`drawio_parser`)
|
|
132
|
+
- draw.io Desktop LevelDB 설정 자동 주입 (`drawio_config`)
|
|
133
|
+
- Flask → FastAPI + SSE 스트리밍 전환
|
|
134
|
+
- `archpilot drawio export` 커맨드 추가
|
|
135
|
+
- TechOntology — 70+ 기술 스택 자동 타입 추론
|
|
136
|
+
- PyPI 배포용 메타데이터 완성
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# ArchPilot
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+

|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
Legacy 시스템 구성을 다이어그램으로 코드화하고, AI 기반으로 현대화된 아키텍처를 설계·시각화하는 CLI 도구.
|
|
8
|
+
|
|
9
|
+
## 설치
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
pip install archpilot
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## 빠른 시작
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
# 1. 초기화 (.env 생성 — OpenAI API Key 입력)
|
|
19
|
+
archpilot init
|
|
20
|
+
|
|
21
|
+
# 2. 레거시 시스템 다이어그램화
|
|
22
|
+
archpilot ingest examples/legacy_ecommerce.yaml
|
|
23
|
+
|
|
24
|
+
# 3. AI 분석
|
|
25
|
+
archpilot analyze output/system.json
|
|
26
|
+
|
|
27
|
+
# 4. 현대화 설계
|
|
28
|
+
archpilot modernize output/system.json -r "AWS 마이크로서비스, Kubernetes, Redis"
|
|
29
|
+
|
|
30
|
+
# 5. 인터랙티브 UI + 발표 자료 서버
|
|
31
|
+
archpilot serve output/
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## draw.io Desktop 통합
|
|
35
|
+
|
|
36
|
+
draw.io에서 직접 아키텍처를 그리고 ArchPilot으로 분석할 수 있습니다.
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
# ArchPilot 컴포넌트 라이브러리를 draw.io Desktop에 설치
|
|
40
|
+
archpilot drawio setup
|
|
41
|
+
|
|
42
|
+
# draw.io Desktop으로 다이어그램 열기 + 변경 자동 감지
|
|
43
|
+
archpilot drawio edit --output output/
|
|
44
|
+
|
|
45
|
+
# draw.io 파일 변경 감시 (저장 시 자동 반영)
|
|
46
|
+
archpilot drawio watch output/legacy/diagram.drawio
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## 전체 CLI 명령어
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
archpilot init .env 초기화 마법사
|
|
53
|
+
archpilot ingest <file> 레거시 시스템 파일 주입 (YAML/JSON/텍스트)
|
|
54
|
+
archpilot analyze <system.json> LLM 분석 보고서 생성
|
|
55
|
+
archpilot modernize <system.json> LLM 현대화 설계 생성
|
|
56
|
+
archpilot serve <output_dir> 인터랙티브 UI 서버 실행
|
|
57
|
+
archpilot export [output_dir] 발표 슬라이드 → 정적 HTML 내보내기 (dist/)
|
|
58
|
+
archpilot drawio setup draw.io Desktop 라이브러리 설치
|
|
59
|
+
archpilot drawio edit draw.io Desktop으로 편집
|
|
60
|
+
archpilot drawio watch <file> 파일 변경 자동 감시
|
|
61
|
+
archpilot drawio export <file> draw.io → system.json 변환
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## 요구사항
|
|
65
|
+
|
|
66
|
+
- Python 3.11+
|
|
67
|
+
- OpenAI API Key
|
|
68
|
+
- Graphviz (PNG 출력 시)
|
|
69
|
+
- draw.io Desktop (drawio 통합 기능 사용 시)
|
|
70
|
+
|
|
71
|
+
## 변경 이력
|
|
72
|
+
|
|
73
|
+
### v0.2.0 (2026-03-13)
|
|
74
|
+
|
|
75
|
+
- draw.io XML → SystemModel 역방향 파서 (`drawio_parser`)
|
|
76
|
+
- draw.io Desktop LevelDB 설정 자동 주입 (`drawio_config`)
|
|
77
|
+
- Flask → FastAPI + SSE 스트리밍 전환
|
|
78
|
+
- `archpilot drawio export` 커맨드 추가
|
|
79
|
+
- TechOntology — 70+ 기술 스택 자동 타입 추론
|
|
80
|
+
- PyPI 배포용 메타데이터 완성
|