convoviz 0.4.2__py3-none-any.whl → 0.4.4__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.
convoviz/cli.py CHANGED
@@ -1,6 +1,7 @@
1
1
  """Command-line interface for convoviz."""
2
2
 
3
3
  import logging
4
+ from importlib.metadata import version as get_version
4
5
  from pathlib import Path
5
6
 
6
7
  import typer
@@ -22,6 +23,13 @@ app = typer.Typer(
22
23
  console = Console()
23
24
 
24
25
 
26
+ def _version_callback(value: bool) -> None:
27
+ """Print version and exit."""
28
+ if value:
29
+ console.print(f"convoviz {get_version('convoviz')}")
30
+ raise typer.Exit()
31
+
32
+
25
33
  @app.callback(invoke_without_command=True)
26
34
  def run(
27
35
  ctx: typer.Context,
@@ -71,6 +79,14 @@ def run(
71
79
  "--log-file",
72
80
  help="Path to log file. Defaults to a temporary file.",
73
81
  ),
82
+ _version: bool = typer.Option(
83
+ False,
84
+ "--version",
85
+ "-V",
86
+ help="Show version and exit.",
87
+ callback=_version_callback,
88
+ is_eager=True,
89
+ ),
74
90
  ) -> None:
75
91
  """Convert ChatGPT export data to markdown and generate visualizations."""
76
92
  # Setup logging immediately
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: convoviz
3
- Version: 0.4.2
4
- Summary: Get analytics and visualizations on your ChatGPT data!
3
+ Version: 0.4.4
4
+ Summary: Convert your ChatGPT export (ZIP) into clean Markdown text files with inline media, and generate data visualizations like word clouds and usage graphs.
5
5
  Keywords: markdown,chatgpt,openai,visualization,analytics,json,export,data-analysis,obsidian
6
6
  Author: Mohamed Cheikh Sidiya
7
7
  Author-email: Mohamed Cheikh Sidiya <mohamedcheikhsidiya77@gmail.com>
@@ -27,7 +27,12 @@ Description-Content-Type: text/markdown
27
27
  <h1 align="center">Convoviz 📊</h1>
28
28
  <p align="center"><strong>Visualize your entire ChatGPT data</strong></p>
29
29
  <p align="center">
30
- Convert your ChatGPT history into well-formatted Markdown files.<br>
30
+ Convert your ChatGPT history into clean, readable Markdown (text files).
31
+ </p>
32
+ <p align="center"><strong>
33
+ Perfect for archiving, local search, or use with note-taking apps like Obsidian.
34
+ </strong></p>
35
+ <p align="center">
31
36
  Visualize your data with word clouds 🔡☁️ and usage graphs 📈.
32
37
  </p>
33
38
  </p>
@@ -35,7 +40,7 @@ Description-Content-Type: text/markdown
35
40
  <p align="center">
36
41
  <a href="https://pypi.org/project/convoviz/"><img src="https://img.shields.io/pypi/v/convoviz?style=for-the-badge&logo=python&logoColor=white" alt="PyPI Version"></a>
37
42
  <a href="https://github.com/mohamed-chs/convoviz/blob/main/LICENSE"><img src="https://img.shields.io/pypi/l/convoviz?style=for-the-badge" alt="License"></a>
38
- <a href="https://pepy.tech/projects/convoviz"><img src="https://img.shields.io/pepy/dt/convoviz?style=for-the-badge" alt="Downloads"></a>
43
+ <a href="https://pepy.tech/projects/convoviz"><img src="https://img.shields.io/pepy/dt/convoviz?style=for-the-badge&color=blue" alt="Downloads"></a>
39
44
  <a href="https://github.com/mohamed-chs/convoviz/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/mohamed-chs/convoviz/ci.yml?style=for-the-badge&logo=github&label=CI" alt="CI Status"></a>
40
45
  </p>
41
46
 
@@ -50,7 +55,7 @@ Description-Content-Type: text/markdown
50
55
  | ☁️ **Word Clouds** | Visual breakdowns of your most-used words and phrases |
51
56
  | 📈 **Usage Graphs** | Bar plots and charts showing your conversation patterns |
52
57
 
53
- > 💡 **See examples in the [`demo/`](demo) folder!**
58
+ > 💡 **See examples in the [`demo/`](https://github.com/mohamed-chs/convoviz/tree/main/demo) folder!**
54
59
 
55
60
  ---
56
61
 
@@ -67,25 +72,29 @@ Description-Content-Type: text/markdown
67
72
 
68
73
  ### Step 2: Install Convoviz
69
74
 
70
- <details open>
71
- <summary><strong>🚀 Quick Install (Recommended)</strong></summary>
75
+ ### 🚀 Quick Install
72
76
 
73
- One command installs everything you need [uv](https://github.com/astral-sh/uv) (a fast Python package manager) and convoviz with graphs and word clouds.
77
+ Run one of the commands below to install **everything** you need automatically.
74
78
 
75
- **Linux / macOS:**
79
+ #### 🍎 macOS / 🐧 Linux
80
+ 1. Open `Terminal`.
81
+ - **macOS**: Press `Cmd + Space`, type "Terminal", and hit Enter.
82
+ - **Linux**: Press `Ctrl + Alt + T`, or search "Terminal" in your app menu.
83
+ 2. Copy and paste this command:
76
84
 
77
85
  ```bash
78
86
  curl -fsSL https://raw.githubusercontent.com/mohamed-chs/convoviz/main/install.sh | bash
79
87
  ```
80
88
 
81
- **Windows (PowerShell):**
89
+ #### 🪟 Windows
90
+ 1. Open `PowerShell`.
91
+ - Press the `Windows` key, type "PowerShell", and hit Enter.
92
+ 2. Copy and paste this command:
82
93
 
83
94
  ```powershell
84
95
  irm https://raw.githubusercontent.com/mohamed-chs/convoviz/main/install.ps1 | iex
85
96
  ```
86
97
 
87
- </details>
88
-
89
98
  <details>
90
99
  <summary><strong>📦 Alternative: Install with pip</strong></summary>
91
100
 
@@ -108,7 +117,7 @@ pip install "convoviz[viz]"
108
117
 
109
118
  ### Step 3: Run Convoviz
110
119
 
111
- The simplest way is to run the command and follow the interactive prompts:
120
+ The simplest way is to run this in your terminal and follow the interactive prompts:
112
121
 
113
122
  ```bash
114
123
  convoviz
@@ -157,7 +166,7 @@ convoviz --help
157
166
 
158
167
  ### Step 4: Check the Output 🎉
159
168
 
160
- After running the script, head to your output folder to see:
169
+ After running the script, head to your output folder (defaults to `Documents/ChatGPT-Data` if you didn't change it) to see:
161
170
  - 📝 Neatly formatted Markdown files
162
171
  - 📊 Visualizations and graphs
163
172
 
@@ -177,6 +186,12 @@ And if you've had a great experience, consider giving the project a ⭐ **star**
177
186
 
178
187
  ---
179
188
 
189
+ ## 🤝 Contributing
190
+
191
+ Interested in contributing? Check out the **[Contributing Guide](https://github.com/mohamed-chs/convoviz/tree/main/CONTRIBUTING.md)** for development setup, code style, and how to submit a pull request.
192
+
193
+ ---
194
+
180
195
  ## 📝 Notes
181
196
 
182
197
  <details>
@@ -36,7 +36,7 @@ convoviz/assets/fonts/YsabeauSC-Regular.ttf,sha256=G4lkq34KKqZOaoomtxFz_KlwVmxg5
36
36
  convoviz/assets/fonts/YsabeauSC-Thin.ttf,sha256=hZGOZNTRrxbiUPE2VDeLbtnaRwkMOBaVQbq7Fwx-34c,116932
37
37
  convoviz/assets/fonts/Zeyada-Regular.ttf,sha256=fKhkrp9VHt_3Aw8JfkfkPeC2j3CilLWuPUudzBeawPQ,57468
38
38
  convoviz/assets/stopwords.txt,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
39
- convoviz/cli.py,sha256=vD4SnS3xthKwNBniWNUy9x1maloBs-xRgcsPHfXzwm4,4888
39
+ convoviz/cli.py,sha256=nniH7QPbbH_buQJGa35vd3IEl7RvZsWRiLpUuhlxXaI,5314
40
40
  convoviz/config.py,sha256=qo4JPkJRx1UgvVN_x-XmycxdjU9XwPlqoZWJLsDMSAs,3592
41
41
  convoviz/exceptions.py,sha256=bQpIKls48uOQpagEJAxpXf5LF7QoagRRfbD0MjWC7Ak,1476
42
42
  convoviz/interactive.py,sha256=Xq55VJJ4OQ9NlY4nlb2NRLzxmA5-ot521N8tGqyPix4,8691
@@ -56,7 +56,7 @@ convoviz/renderers/__init__.py,sha256=IQgwD9NqtUgbS9zwyPBNZbBIZcFrbZ9C7WMAV-X3Xd
56
56
  convoviz/renderers/markdown.py,sha256=55PACkd-F0mmBXWXQ5SrfJr3UNrK_z2spQnePdk1UsQ,7849
57
57
  convoviz/renderers/yaml.py,sha256=XG1s4VhDdx-TiqekTkgED87RZ1lVQ7IwrbA-sZHrs7k,4056
58
58
  convoviz/utils.py,sha256=IQEKYHhWOnYxlr4GwAHoquG0BXTlVRkORL80oUSaIeQ,3417
59
- convoviz-0.4.2.dist-info/WHEEL,sha256=fAguSjoiATBe7TNBkJwOjyL1Tt4wwiaQGtNtjRPNMQA,80
60
- convoviz-0.4.2.dist-info/entry_points.txt,sha256=HYsmsw5vt36yYHB05uVU48AK2WLkcwshly7m7KKuZMY,54
61
- convoviz-0.4.2.dist-info/METADATA,sha256=qglS145pZ-nkqxOqWehN4ymFKJtm80rxrQx-OiT292c,7009
62
- convoviz-0.4.2.dist-info/RECORD,,
59
+ convoviz-0.4.4.dist-info/WHEEL,sha256=fAguSjoiATBe7TNBkJwOjyL1Tt4wwiaQGtNtjRPNMQA,80
60
+ convoviz-0.4.4.dist-info/entry_points.txt,sha256=HYsmsw5vt36yYHB05uVU48AK2WLkcwshly7m7KKuZMY,54
61
+ convoviz-0.4.4.dist-info/METADATA,sha256=KgUNxmh1vEiTbBYOx82YlFMi-c3d1BKKu3XUUBmHzGY,7803
62
+ convoviz-0.4.4.dist-info/RECORD,,