cli-dev-tip 0.1.0__py3-none-any.whl → 0.1.2__py3-none-any.whl
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.
- {cli_dev_tip-0.1.0.dist-info → cli_dev_tip-0.1.2.dist-info}/METADATA +24 -13
- {cli_dev_tip-0.1.0.dist-info → cli_dev_tip-0.1.2.dist-info}/RECORD +6 -6
- dev_tip/hook.py +1 -1
- {cli_dev_tip-0.1.0.dist-info → cli_dev_tip-0.1.2.dist-info}/WHEEL +0 -0
- {cli_dev_tip-0.1.0.dist-info → cli_dev_tip-0.1.2.dist-info}/entry_points.txt +0 -0
- {cli_dev_tip-0.1.0.dist-info → cli_dev_tip-0.1.2.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cli-dev-tip
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: Bite-sized developer tips in your terminal
|
|
5
5
|
Project-URL: Homepage, https://github.com/My-CD-ROM/cli-dev-tip
|
|
6
6
|
Project-URL: Repository, https://github.com/My-CD-ROM/cli-dev-tip
|
|
@@ -30,6 +30,10 @@ Description-Content-Type: text/markdown
|
|
|
30
30
|
|
|
31
31
|
A terminal tool that helps developers learn continuously by showing bite-sized technical tips — right in the terminal, between commands.
|
|
32
32
|
|
|
33
|
+
<p align="center">
|
|
34
|
+
<img src="https://raw.githubusercontent.com/My-CD-ROM/cli-dev-tip/master/assets/tip.svg" width="600" alt="dev-tip showing a Python tip">
|
|
35
|
+
</p>
|
|
36
|
+
|
|
33
37
|
## What it does
|
|
34
38
|
|
|
35
39
|
- Shows tips periodically during your shell session (every N commands or M minutes)
|
|
@@ -47,7 +51,15 @@ A terminal tool that helps developers learn continuously by showing bite-sized t
|
|
|
47
51
|
uv tool install cli-dev-tip
|
|
48
52
|
```
|
|
49
53
|
|
|
50
|
-
|
|
54
|
+
Also works with pip or pipx:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
pip install cli-dev-tip
|
|
58
|
+
# or
|
|
59
|
+
pipx install cli-dev-tip
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
This makes `dev-tip` available globally from any terminal.
|
|
51
63
|
|
|
52
64
|
## Quick start
|
|
53
65
|
|
|
@@ -57,6 +69,10 @@ The recommended setup — AI-generated tips covering general IT topics, appearin
|
|
|
57
69
|
dev-tip enable --provider gemini --key YOUR_GEMINI_API_KEY
|
|
58
70
|
```
|
|
59
71
|
|
|
72
|
+
<p align="center">
|
|
73
|
+
<img src="https://raw.githubusercontent.com/My-CD-ROM/cli-dev-tip/master/assets/enable.svg" width="600" alt="dev-tip enable output">
|
|
74
|
+
</p>
|
|
75
|
+
|
|
60
76
|
Get a free Gemini API key at https://aistudio.google.com or a free OpenRouter key at https://openrouter.ai/keys.
|
|
61
77
|
|
|
62
78
|
More examples:
|
|
@@ -161,10 +177,9 @@ Unknown topics produce a warning when using static tips (AI can handle any topic
|
|
|
161
177
|
|
|
162
178
|
Temporarily stop tips without removing the hook:
|
|
163
179
|
|
|
164
|
-
|
|
165
|
-
dev-tip
|
|
166
|
-
|
|
167
|
-
```
|
|
180
|
+
<p align="center">
|
|
181
|
+
<img src="https://raw.githubusercontent.com/My-CD-ROM/cli-dev-tip/master/assets/pause.svg" width="600" alt="dev-tip pause and resume">
|
|
182
|
+
</p>
|
|
168
183
|
|
|
169
184
|
This creates/removes a `.paused` file in `~/.dev-tip/`. The shell hook checks for it with a fast `[ -f ]` test — no Python invoked when paused.
|
|
170
185
|
|
|
@@ -172,9 +187,9 @@ This creates/removes a `.paused` file in `~/.dev-tip/`. The shell hook checks fo
|
|
|
172
187
|
|
|
173
188
|
Show current configuration and diagnostics:
|
|
174
189
|
|
|
175
|
-
|
|
176
|
-
dev-tip status
|
|
177
|
-
|
|
190
|
+
<p align="center">
|
|
191
|
+
<img src="https://raw.githubusercontent.com/My-CD-ROM/cli-dev-tip/master/assets/status.svg" width="600" alt="dev-tip status output">
|
|
192
|
+
</p>
|
|
178
193
|
|
|
179
194
|
Displays hook state, pause status, config values, AI provider info, cache stats, and tip history count.
|
|
180
195
|
|
|
@@ -217,7 +232,3 @@ Settings are stored in `~/.dev-tip/config.toml`:
|
|
|
217
232
|
```
|
|
218
233
|
|
|
219
234
|
Values passed via `dev-tip enable` flags are saved here automatically. Comments in the config file are preserved when values are updated.
|
|
220
|
-
|
|
221
|
-
## Status
|
|
222
|
-
|
|
223
|
-
Early development — not yet published to PyPI.
|
|
@@ -2,7 +2,7 @@ dev_tip/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
2
2
|
dev_tip/cli.py,sha256=Sej-M5c-JIYl2AsOQiLIJtZSEYjzT67qwX1XfPLTtDw,9317
|
|
3
3
|
dev_tip/config.py,sha256=v9O3v2JRCWsKsGAfqLPFZRiefMDUqhLwjbDJ_hVkHzA,2857
|
|
4
4
|
dev_tip/history.py,sha256=-0oNobingttE63bNygV9qb66MPJ_fzGiSp56HlUj17w,1357
|
|
5
|
-
dev_tip/hook.py,sha256=
|
|
5
|
+
dev_tip/hook.py,sha256=fyRePDuyT-WbZ_6Y4oXxEyDdk8aewqoLK_kPoB8owYA,5988
|
|
6
6
|
dev_tip/prefetch.py,sha256=PBo3B5Y20qDILb6EGugCunFSHli57LvZamLLrWpcI78,2735
|
|
7
7
|
dev_tip/tips.py,sha256=GkZyDSaYgoJ9E0K9mtLiF8xkgCB5ZilEBicMnPg_TjA,1214
|
|
8
8
|
dev_tip/ai/__init__.py,sha256=FjLwQgnWgEUo4uQgEXOrBeWOlW_D1rdR-k2YSog_oZs,1508
|
|
@@ -12,8 +12,8 @@ dev_tip/ai/openrouter.py,sha256=kvXPKTITNAbKGNxaiXmAX6k2vrhq87KeRRdHFayDlzw,1308
|
|
|
12
12
|
dev_tip/ai/prompt.py,sha256=Bu0PIA24rkYSDlKDmn_53psZSCKN-ZkyI4dES9-9H5w,1951
|
|
13
13
|
dev_tip/ai/provider.py,sha256=ofN7fRd1oIAO6ACPa26ORw0hfHkMB_MmiNDxed1U83U,802
|
|
14
14
|
dev_tip/data/tips.yaml,sha256=ZTYJixcWc254fGob8rnlT3BPP11Txt2MepVmmth020w,65596
|
|
15
|
-
cli_dev_tip-0.1.
|
|
16
|
-
cli_dev_tip-0.1.
|
|
17
|
-
cli_dev_tip-0.1.
|
|
18
|
-
cli_dev_tip-0.1.
|
|
19
|
-
cli_dev_tip-0.1.
|
|
15
|
+
cli_dev_tip-0.1.2.dist-info/METADATA,sha256=RKwzj7gTcVstSsY36ROveSQzp6NPxdnnnYsAnOvryPQ,7130
|
|
16
|
+
cli_dev_tip-0.1.2.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
17
|
+
cli_dev_tip-0.1.2.dist-info/entry_points.txt,sha256=FvSBE9Vbj_X7KwhFalaofZQ0430_LSxPN0ggN9iqMMQ,44
|
|
18
|
+
cli_dev_tip-0.1.2.dist-info/licenses/LICENSE,sha256=ZCF4QpcG0qNzdPHHFuFbmedutqJzTh3oH7paKbrE_VY,1066
|
|
19
|
+
cli_dev_tip-0.1.2.dist-info/RECORD,,
|
dev_tip/hook.py
CHANGED
|
@@ -168,7 +168,7 @@ def enable(
|
|
|
168
168
|
f"Tips will appear every {every_commands} commands "
|
|
169
169
|
f"or {every_minutes} minutes."
|
|
170
170
|
)
|
|
171
|
-
console.print(f"
|
|
171
|
+
console.print(f"Reload your shell: [bold]exec {shell}[/bold]")
|
|
172
172
|
|
|
173
173
|
|
|
174
174
|
def disable() -> None:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|