kiwoom-cli 0.6.1__tar.gz → 0.6.2__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.
- {kiwoom_cli-0.6.1 → kiwoom_cli-0.6.2}/PKG-INFO +9 -6
- {kiwoom_cli-0.6.1 → kiwoom_cli-0.6.2}/README.md +8 -5
- {kiwoom_cli-0.6.1 → kiwoom_cli-0.6.2}/kiwoom_cli/__init__.py +1 -1
- {kiwoom_cli-0.6.1 → kiwoom_cli-0.6.2}/kiwoom_cli/main.py +26 -9
- {kiwoom_cli-0.6.1 → kiwoom_cli-0.6.2}/kiwoom_cli.egg-info/PKG-INFO +9 -6
- {kiwoom_cli-0.6.1 → kiwoom_cli-0.6.2}/pyproject.toml +1 -1
- {kiwoom_cli-0.6.1 → kiwoom_cli-0.6.2}/tests/test_cli.py +1 -1
- {kiwoom_cli-0.6.1 → kiwoom_cli-0.6.2}/LICENSE +0 -0
- {kiwoom_cli-0.6.1 → kiwoom_cli-0.6.2}/kiwoom_cli/api_spec.py +0 -0
- {kiwoom_cli-0.6.1 → kiwoom_cli-0.6.2}/kiwoom_cli/auth.py +0 -0
- {kiwoom_cli-0.6.1 → kiwoom_cli-0.6.2}/kiwoom_cli/client.py +0 -0
- {kiwoom_cli-0.6.1 → kiwoom_cli-0.6.2}/kiwoom_cli/commands/__init__.py +0 -0
- {kiwoom_cli-0.6.1 → kiwoom_cli-0.6.2}/kiwoom_cli/commands/account.py +0 -0
- {kiwoom_cli-0.6.1 → kiwoom_cli-0.6.2}/kiwoom_cli/commands/dashboard.py +0 -0
- {kiwoom_cli-0.6.1 → kiwoom_cli-0.6.2}/kiwoom_cli/commands/market.py +0 -0
- {kiwoom_cli-0.6.1 → kiwoom_cli-0.6.2}/kiwoom_cli/commands/order.py +0 -0
- {kiwoom_cli-0.6.1 → kiwoom_cli-0.6.2}/kiwoom_cli/commands/stock.py +0 -0
- {kiwoom_cli-0.6.1 → kiwoom_cli-0.6.2}/kiwoom_cli/commands/stream.py +0 -0
- {kiwoom_cli-0.6.1 → kiwoom_cli-0.6.2}/kiwoom_cli/commands/watch.py +0 -0
- {kiwoom_cli-0.6.1 → kiwoom_cli-0.6.2}/kiwoom_cli/config.py +0 -0
- {kiwoom_cli-0.6.1 → kiwoom_cli-0.6.2}/kiwoom_cli/formatters.py +0 -0
- {kiwoom_cli-0.6.1 → kiwoom_cli-0.6.2}/kiwoom_cli/output.py +0 -0
- {kiwoom_cli-0.6.1 → kiwoom_cli-0.6.2}/kiwoom_cli/secure_store.py +0 -0
- {kiwoom_cli-0.6.1 → kiwoom_cli-0.6.2}/kiwoom_cli/streaming.py +0 -0
- {kiwoom_cli-0.6.1 → kiwoom_cli-0.6.2}/kiwoom_cli.egg-info/SOURCES.txt +0 -0
- {kiwoom_cli-0.6.1 → kiwoom_cli-0.6.2}/kiwoom_cli.egg-info/dependency_links.txt +0 -0
- {kiwoom_cli-0.6.1 → kiwoom_cli-0.6.2}/kiwoom_cli.egg-info/entry_points.txt +0 -0
- {kiwoom_cli-0.6.1 → kiwoom_cli-0.6.2}/kiwoom_cli.egg-info/requires.txt +0 -0
- {kiwoom_cli-0.6.1 → kiwoom_cli-0.6.2}/kiwoom_cli.egg-info/top_level.txt +0 -0
- {kiwoom_cli-0.6.1 → kiwoom_cli-0.6.2}/setup.cfg +0 -0
- {kiwoom_cli-0.6.1 → kiwoom_cli-0.6.2}/tests/test_client.py +0 -0
- {kiwoom_cli-0.6.1 → kiwoom_cli-0.6.2}/tests/test_formatters.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: kiwoom-cli
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.2
|
|
4
4
|
Summary: User-friendly CLI for the Kiwoom Securities REST API (키움증권)
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Homepage, https://github.com/gejyn14/kiwoom-cli
|
|
@@ -92,16 +92,19 @@ appkey/secretkey는 보안을 위해 환경변수를 지원하지 않습니다.
|
|
|
92
92
|
```bash
|
|
93
93
|
# 프로필별 설정
|
|
94
94
|
kiwoom config setup --profile default # 메인계좌
|
|
95
|
-
kiwoom config setup --profile isa
|
|
95
|
+
kiwoom config setup --profile isa # ISA계좌
|
|
96
96
|
|
|
97
|
-
#
|
|
98
|
-
kiwoom config
|
|
97
|
+
# 프로필 설정 변경
|
|
98
|
+
kiwoom config set domain prod # 도메인 변경
|
|
99
|
+
kiwoom config set account 1234567 # 계좌번호 설정
|
|
100
|
+
kiwoom -p isa config set domain mock # 특정 프로필
|
|
99
101
|
|
|
100
|
-
# 프로필 목록
|
|
102
|
+
# 프로필 전환 / 목록
|
|
103
|
+
kiwoom config use isa
|
|
101
104
|
kiwoom config profiles
|
|
102
105
|
|
|
103
106
|
# 특정 프로필로 사용
|
|
104
|
-
kiwoom -p
|
|
107
|
+
kiwoom -p isa account balance
|
|
105
108
|
kiwoom -p isa auth login
|
|
106
109
|
```
|
|
107
110
|
|
|
@@ -58,16 +58,19 @@ appkey/secretkey는 보안을 위해 환경변수를 지원하지 않습니다.
|
|
|
58
58
|
```bash
|
|
59
59
|
# 프로필별 설정
|
|
60
60
|
kiwoom config setup --profile default # 메인계좌
|
|
61
|
-
kiwoom config setup --profile isa
|
|
61
|
+
kiwoom config setup --profile isa # ISA계좌
|
|
62
62
|
|
|
63
|
-
#
|
|
64
|
-
kiwoom config
|
|
63
|
+
# 프로필 설정 변경
|
|
64
|
+
kiwoom config set domain prod # 도메인 변경
|
|
65
|
+
kiwoom config set account 1234567 # 계좌번호 설정
|
|
66
|
+
kiwoom -p isa config set domain mock # 특정 프로필
|
|
65
67
|
|
|
66
|
-
# 프로필 목록
|
|
68
|
+
# 프로필 전환 / 목록
|
|
69
|
+
kiwoom config use isa
|
|
67
70
|
kiwoom config profiles
|
|
68
71
|
|
|
69
72
|
# 특정 프로필로 사용
|
|
70
|
-
kiwoom -p
|
|
73
|
+
kiwoom -p isa account balance
|
|
71
74
|
kiwoom -p isa auth login
|
|
72
75
|
```
|
|
73
76
|
|
|
@@ -150,16 +150,30 @@ def config_show(ctx):
|
|
|
150
150
|
console.print(f" 보안: [bold]{'SecureStore 활성' if initialized else '미초기화'}[/]")
|
|
151
151
|
|
|
152
152
|
|
|
153
|
-
@config_cmd.command("
|
|
154
|
-
@click.argument("
|
|
153
|
+
@config_cmd.command("set")
|
|
154
|
+
@click.argument("key", type=click.Choice(["domain", "account"]))
|
|
155
|
+
@click.argument("value")
|
|
155
156
|
@click.pass_context
|
|
156
|
-
def
|
|
157
|
-
"""
|
|
157
|
+
def config_set(ctx, key: str, value: str):
|
|
158
|
+
"""프로필 설정 변경. (예: kiwoom config set domain prod)"""
|
|
158
159
|
profile = config.resolve_profile(ctx.obj.get("profile") if ctx.obj else None)
|
|
160
|
+
if key == "domain" and value not in ("prod", "mock"):
|
|
161
|
+
console.print("[red]domain은 prod 또는 mock만 가능합니다.[/]")
|
|
162
|
+
raise SystemExit(1)
|
|
159
163
|
cfg = config.load_config()
|
|
160
|
-
cfg.setdefault("profiles", {}).setdefault(profile, {})[
|
|
164
|
+
cfg.setdefault("profiles", {}).setdefault(profile, {})[key] = value
|
|
161
165
|
config.save_config(cfg)
|
|
162
|
-
|
|
166
|
+
display = config.DOMAINS[value] if key == "domain" else value
|
|
167
|
+
console.print(f"[green]{key} 변경:[/] {display} (프로필: {profile})")
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
# Backward compatibility: keep 'domain' as alias
|
|
171
|
+
@config_cmd.command("domain", hidden=True)
|
|
172
|
+
@click.argument("domain", type=click.Choice(["prod", "mock"]))
|
|
173
|
+
@click.pass_context
|
|
174
|
+
def config_domain(ctx, domain: str):
|
|
175
|
+
"""도메인 변경 (config set domain의 별칭)."""
|
|
176
|
+
ctx.invoke(config_set, key="domain", value=domain)
|
|
163
177
|
|
|
164
178
|
|
|
165
179
|
@config_cmd.command("use")
|
|
@@ -183,11 +197,14 @@ def config_profiles():
|
|
|
183
197
|
if not profiles:
|
|
184
198
|
console.print("[yellow]등록된 프로필이 없습니다.[/]")
|
|
185
199
|
return
|
|
200
|
+
console.print(f" 현재 프로필: [bold green]{default}[/]")
|
|
201
|
+
console.print()
|
|
186
202
|
for name, settings in profiles.items():
|
|
187
|
-
marker = " [green]
|
|
203
|
+
marker = " [green]*[/]" if name == default else " "
|
|
188
204
|
domain = settings.get("domain", "mock")
|
|
189
|
-
account = settings.get("account", "
|
|
190
|
-
|
|
205
|
+
account = settings.get("account", "")
|
|
206
|
+
account_str = f" 계좌={account}" if account else ""
|
|
207
|
+
console.print(f" {marker} {name:15s} 도메인={domain}{account_str}")
|
|
191
208
|
|
|
192
209
|
|
|
193
210
|
# ── Auth ──────────────────────────────────────────────
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: kiwoom-cli
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.2
|
|
4
4
|
Summary: User-friendly CLI for the Kiwoom Securities REST API (키움증권)
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Homepage, https://github.com/gejyn14/kiwoom-cli
|
|
@@ -92,16 +92,19 @@ appkey/secretkey는 보안을 위해 환경변수를 지원하지 않습니다.
|
|
|
92
92
|
```bash
|
|
93
93
|
# 프로필별 설정
|
|
94
94
|
kiwoom config setup --profile default # 메인계좌
|
|
95
|
-
kiwoom config setup --profile isa
|
|
95
|
+
kiwoom config setup --profile isa # ISA계좌
|
|
96
96
|
|
|
97
|
-
#
|
|
98
|
-
kiwoom config
|
|
97
|
+
# 프로필 설정 변경
|
|
98
|
+
kiwoom config set domain prod # 도메인 변경
|
|
99
|
+
kiwoom config set account 1234567 # 계좌번호 설정
|
|
100
|
+
kiwoom -p isa config set domain mock # 특정 프로필
|
|
99
101
|
|
|
100
|
-
# 프로필 목록
|
|
102
|
+
# 프로필 전환 / 목록
|
|
103
|
+
kiwoom config use isa
|
|
101
104
|
kiwoom config profiles
|
|
102
105
|
|
|
103
106
|
# 특정 프로필로 사용
|
|
104
|
-
kiwoom -p
|
|
107
|
+
kiwoom -p isa account balance
|
|
105
108
|
kiwoom -p isa auth login
|
|
106
109
|
```
|
|
107
110
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|