devDocs 2.0.3__tar.gz → 2.0.7__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.
devdocs-2.0.7/PKG-INFO ADDED
@@ -0,0 +1,204 @@
1
+ Metadata-Version: 2.4
2
+ Name: devDocs
3
+ Version: 2.0.7
4
+ Summary: AI-powered CLI tool that builds professional '*.md' documentation files of a project for internal teams using the Google Gemini API.
5
+ Author: Gantavya Bansal
6
+ Author-email: Gantavya Bansal <gantavyaoo@gmail.com>
7
+ License: MIT
8
+ Project-URL: Homepage, https://github.com/bgantavya/devDocs
9
+ Project-URL: Repository, https://github.com/bgantavya/devDocs
10
+ Project-URL: Issues, https://github.com/bgantavya/devDocs/issues
11
+ Project-URL: Documentation, https://github.com/bgantavya/devDocs#readme
12
+ Keywords: cli,documentation,readme,generator,google-gemini,ai,markdown,docs-generator,auto-readme,open-source
13
+ Classifier: Development Status :: 4 - Beta
14
+ Classifier: Environment :: Console
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: Intended Audience :: Information Technology
17
+ Classifier: Topic :: Documentation
18
+ Classifier: Topic :: Software Development :: Code Generators
19
+ Classifier: Topic :: Software Development :: Documentation
20
+ Classifier: License :: OSI Approved :: MIT License
21
+ Classifier: Programming Language :: Python :: 3
22
+ Classifier: Programming Language :: Python :: 3.8
23
+ Classifier: Programming Language :: Python :: 3.9
24
+ Classifier: Programming Language :: Python :: 3.10
25
+ Classifier: Programming Language :: Python :: 3.11
26
+ Classifier: Operating System :: OS Independent
27
+ Requires-Python: >=3.8
28
+ Description-Content-Type: text/markdown
29
+ Requires-Dist: google-genai
30
+ Requires-Dist: httpx
31
+ Dynamic: author
32
+ Dynamic: requires-python
33
+
34
+
35
+ ---
36
+
37
+ # 📘 `devDocs` – AI-Powered README Generator
38
+
39
+ `devDocs` is a command-line tool that automatically generates clean, professional `README.md` files by analyzing your **project structure**, **source code**, and any **existing documentation**.
40
+
41
+ Powered by the **Google Gemini API**, it's ideal for:
42
+
43
+ * 💡 Open-source contributors
44
+ * 🛠️ Internal dev tools
45
+ * 🚀 Hackathon projects needing docs fast
46
+
47
+ ---
48
+
49
+ ## 📂 Example Project Layout
50
+
51
+ Before and after running `devDocs`:
52
+
53
+ ```bash
54
+ your-project/
55
+ ├── src/
56
+ │ ├── main.py
57
+ │ └── utils.py
58
+ ├── tests/
59
+ ├── requirements.txt
60
+ ├── LICENSE
61
+ ├── docs/ # ← Generated by devDocs
62
+ └── README.md # ← Overwritten by devDocs (if chosen)
63
+ ```
64
+
65
+ ---
66
+
67
+ ## ⚙️ How It Works
68
+
69
+ 1. **Scans** project directory and source files
70
+ 2. **Parses** content (code, comments, old README)
71
+ 3. **Generates** documentation via Google Gemini
72
+ 4. **Saves** output in Markdown format
73
+
74
+ ### Optional Features
75
+
76
+ * Preserve existing README (unless `--overwrite` is set)
77
+ * Include/exclude specific files or folders via filters
78
+
79
+ ---
80
+
81
+ ## 📦 Installation
82
+
83
+ Install via pip:
84
+
85
+ ```bash
86
+ pip install devDocs
87
+ ```
88
+
89
+ ---
90
+
91
+ ## 🔑 Requirements
92
+
93
+ * Python 3.8+
94
+ * Google Gemini API Key (get one at [Google AI Studio](https://aistudio.google.com/))
95
+
96
+ ---
97
+
98
+ ## 🚀 Usage
99
+
100
+ Run inside your project’s root:
101
+
102
+ ```bash
103
+ devDocs [OPTIONS]
104
+ ```
105
+
106
+ Paste your **Gemini API key** when prompted.
107
+
108
+ ### CLI Options
109
+
110
+ | Option | Description |
111
+ | --------------- | ------------------------------------------------- |
112
+ | `--path` | Root folder to scan (default: `.`) |
113
+ | `--name` | Project name to display in the README |
114
+ | `--description` | Short project summary |
115
+ | `--authors` | Comma-separated list of authors |
116
+ | `--keywords` | Comma-separated keywords (e.g., cli, docs, ai) |
117
+ | `--overwrite` | Overwrite existing `README.md` (default: False) |
118
+ | `--output` | Output folder (default: `docs/`) |
119
+ | `--exclude` | Comma-separated paths/extensions to exclude |
120
+ | `--include` | Comma-separated paths/extensions to force include |
121
+
122
+ ---
123
+
124
+ ### ✅ Example
125
+
126
+ ```bash
127
+ devDocs --path . \
128
+ --name "Cool Dev Tool" \
129
+ --description "Generate AI-based READMEs effortlessly" \
130
+ --authors "Gantavya Bansal" \
131
+ --keywords "cli, docs, automation" \
132
+ --output docs \
133
+ --overwrite
134
+ ```
135
+
136
+ ---
137
+
138
+ ## 🧠 Key Features
139
+
140
+ ✅ Auto-generates structured `README.md`
141
+ ✅ Respects original files unless `--overwrite`
142
+ ✅ Fine-grained include/exclude control
143
+ ✅ Generates a visual folder tree
144
+ ✅ Clean output in a dedicated `--output` folder
145
+ ✅ Backed by Google Gemini for high-quality results
146
+
147
+ ---
148
+
149
+ ## 🧱 Tech Stack
150
+
151
+ * Python 3.8+
152
+ * [`google-genai`](https://pypi.org/project/google-generativeai/)
153
+ * Built-in: `argparse`, `os`, `logging`, `time`
154
+
155
+ ---
156
+
157
+ ## 🛠️ Dev Notes
158
+
159
+ ### Workflow
160
+
161
+ ```
162
+ CLI args → Filter files → Extract context → Call Gemini → Write docs
163
+ ```
164
+
165
+ ### API Prompt Template
166
+
167
+ ```python
168
+ system_instruction = '''
169
+ You are Gantavya Bansal, a senior engineer and technical writer.
170
+ Generate professional Markdown documentation using context from code and folder structure.
171
+ Include:
172
+ - Title
173
+ - Folder Tree
174
+ - Description
175
+ - Usage
176
+ - Tech Stack
177
+ - Known Issues
178
+ - Licensing
179
+ '''
180
+ ```
181
+
182
+ ---
183
+
184
+ ## ⚠️ Limitations
185
+
186
+ * 📶 Requires internet (for Gemini API)
187
+ * 🔁 Retry logic for failed API calls is minimal
188
+ * ❌ Regex not yet supported in filters
189
+ * 📄 Only outputs `.md` format (Markdown)
190
+
191
+ ---
192
+
193
+ ## 📜 License
194
+
195
+ Released under the **MIT License**. Use, modify, and share freely — attribution appreciated.
196
+
197
+ ---
198
+
199
+ ## 🤝 Contribute
200
+
201
+ Found a bug or have an idea?
202
+ Open an issue or submit a PR — contributions are always welcome!
203
+
204
+ ---
@@ -0,0 +1,171 @@
1
+
2
+ ---
3
+
4
+ # 📘 `devDocs` – AI-Powered README Generator
5
+
6
+ `devDocs` is a command-line tool that automatically generates clean, professional `README.md` files by analyzing your **project structure**, **source code**, and any **existing documentation**.
7
+
8
+ Powered by the **Google Gemini API**, it's ideal for:
9
+
10
+ * 💡 Open-source contributors
11
+ * 🛠️ Internal dev tools
12
+ * 🚀 Hackathon projects needing docs fast
13
+
14
+ ---
15
+
16
+ ## 📂 Example Project Layout
17
+
18
+ Before and after running `devDocs`:
19
+
20
+ ```bash
21
+ your-project/
22
+ ├── src/
23
+ │ ├── main.py
24
+ │ └── utils.py
25
+ ├── tests/
26
+ ├── requirements.txt
27
+ ├── LICENSE
28
+ ├── docs/ # ← Generated by devDocs
29
+ └── README.md # ← Overwritten by devDocs (if chosen)
30
+ ```
31
+
32
+ ---
33
+
34
+ ## ⚙️ How It Works
35
+
36
+ 1. **Scans** project directory and source files
37
+ 2. **Parses** content (code, comments, old README)
38
+ 3. **Generates** documentation via Google Gemini
39
+ 4. **Saves** output in Markdown format
40
+
41
+ ### Optional Features
42
+
43
+ * Preserve existing README (unless `--overwrite` is set)
44
+ * Include/exclude specific files or folders via filters
45
+
46
+ ---
47
+
48
+ ## 📦 Installation
49
+
50
+ Install via pip:
51
+
52
+ ```bash
53
+ pip install devDocs
54
+ ```
55
+
56
+ ---
57
+
58
+ ## 🔑 Requirements
59
+
60
+ * Python 3.8+
61
+ * Google Gemini API Key (get one at [Google AI Studio](https://aistudio.google.com/))
62
+
63
+ ---
64
+
65
+ ## 🚀 Usage
66
+
67
+ Run inside your project’s root:
68
+
69
+ ```bash
70
+ devDocs [OPTIONS]
71
+ ```
72
+
73
+ Paste your **Gemini API key** when prompted.
74
+
75
+ ### CLI Options
76
+
77
+ | Option | Description |
78
+ | --------------- | ------------------------------------------------- |
79
+ | `--path` | Root folder to scan (default: `.`) |
80
+ | `--name` | Project name to display in the README |
81
+ | `--description` | Short project summary |
82
+ | `--authors` | Comma-separated list of authors |
83
+ | `--keywords` | Comma-separated keywords (e.g., cli, docs, ai) |
84
+ | `--overwrite` | Overwrite existing `README.md` (default: False) |
85
+ | `--output` | Output folder (default: `docs/`) |
86
+ | `--exclude` | Comma-separated paths/extensions to exclude |
87
+ | `--include` | Comma-separated paths/extensions to force include |
88
+
89
+ ---
90
+
91
+ ### ✅ Example
92
+
93
+ ```bash
94
+ devDocs --path . \
95
+ --name "Cool Dev Tool" \
96
+ --description "Generate AI-based READMEs effortlessly" \
97
+ --authors "Gantavya Bansal" \
98
+ --keywords "cli, docs, automation" \
99
+ --output docs \
100
+ --overwrite
101
+ ```
102
+
103
+ ---
104
+
105
+ ## 🧠 Key Features
106
+
107
+ ✅ Auto-generates structured `README.md`
108
+ ✅ Respects original files unless `--overwrite`
109
+ ✅ Fine-grained include/exclude control
110
+ ✅ Generates a visual folder tree
111
+ ✅ Clean output in a dedicated `--output` folder
112
+ ✅ Backed by Google Gemini for high-quality results
113
+
114
+ ---
115
+
116
+ ## 🧱 Tech Stack
117
+
118
+ * Python 3.8+
119
+ * [`google-genai`](https://pypi.org/project/google-generativeai/)
120
+ * Built-in: `argparse`, `os`, `logging`, `time`
121
+
122
+ ---
123
+
124
+ ## 🛠️ Dev Notes
125
+
126
+ ### Workflow
127
+
128
+ ```
129
+ CLI args → Filter files → Extract context → Call Gemini → Write docs
130
+ ```
131
+
132
+ ### API Prompt Template
133
+
134
+ ```python
135
+ system_instruction = '''
136
+ You are Gantavya Bansal, a senior engineer and technical writer.
137
+ Generate professional Markdown documentation using context from code and folder structure.
138
+ Include:
139
+ - Title
140
+ - Folder Tree
141
+ - Description
142
+ - Usage
143
+ - Tech Stack
144
+ - Known Issues
145
+ - Licensing
146
+ '''
147
+ ```
148
+
149
+ ---
150
+
151
+ ## ⚠️ Limitations
152
+
153
+ * 📶 Requires internet (for Gemini API)
154
+ * 🔁 Retry logic for failed API calls is minimal
155
+ * ❌ Regex not yet supported in filters
156
+ * 📄 Only outputs `.md` format (Markdown)
157
+
158
+ ---
159
+
160
+ ## 📜 License
161
+
162
+ Released under the **MIT License**. Use, modify, and share freely — attribution appreciated.
163
+
164
+ ---
165
+
166
+ ## 🤝 Contribute
167
+
168
+ Found a bug or have an idea?
169
+ Open an issue or submit a PR — contributions are always welcome!
170
+
171
+ ---
@@ -0,0 +1,204 @@
1
+ Metadata-Version: 2.4
2
+ Name: devDocs
3
+ Version: 2.0.7
4
+ Summary: AI-powered CLI tool that builds professional '*.md' documentation files of a project for internal teams using the Google Gemini API.
5
+ Author: Gantavya Bansal
6
+ Author-email: Gantavya Bansal <gantavyaoo@gmail.com>
7
+ License: MIT
8
+ Project-URL: Homepage, https://github.com/bgantavya/devDocs
9
+ Project-URL: Repository, https://github.com/bgantavya/devDocs
10
+ Project-URL: Issues, https://github.com/bgantavya/devDocs/issues
11
+ Project-URL: Documentation, https://github.com/bgantavya/devDocs#readme
12
+ Keywords: cli,documentation,readme,generator,google-gemini,ai,markdown,docs-generator,auto-readme,open-source
13
+ Classifier: Development Status :: 4 - Beta
14
+ Classifier: Environment :: Console
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: Intended Audience :: Information Technology
17
+ Classifier: Topic :: Documentation
18
+ Classifier: Topic :: Software Development :: Code Generators
19
+ Classifier: Topic :: Software Development :: Documentation
20
+ Classifier: License :: OSI Approved :: MIT License
21
+ Classifier: Programming Language :: Python :: 3
22
+ Classifier: Programming Language :: Python :: 3.8
23
+ Classifier: Programming Language :: Python :: 3.9
24
+ Classifier: Programming Language :: Python :: 3.10
25
+ Classifier: Programming Language :: Python :: 3.11
26
+ Classifier: Operating System :: OS Independent
27
+ Requires-Python: >=3.8
28
+ Description-Content-Type: text/markdown
29
+ Requires-Dist: google-genai
30
+ Requires-Dist: httpx
31
+ Dynamic: author
32
+ Dynamic: requires-python
33
+
34
+
35
+ ---
36
+
37
+ # 📘 `devDocs` – AI-Powered README Generator
38
+
39
+ `devDocs` is a command-line tool that automatically generates clean, professional `README.md` files by analyzing your **project structure**, **source code**, and any **existing documentation**.
40
+
41
+ Powered by the **Google Gemini API**, it's ideal for:
42
+
43
+ * 💡 Open-source contributors
44
+ * 🛠️ Internal dev tools
45
+ * 🚀 Hackathon projects needing docs fast
46
+
47
+ ---
48
+
49
+ ## 📂 Example Project Layout
50
+
51
+ Before and after running `devDocs`:
52
+
53
+ ```bash
54
+ your-project/
55
+ ├── src/
56
+ │ ├── main.py
57
+ │ └── utils.py
58
+ ├── tests/
59
+ ├── requirements.txt
60
+ ├── LICENSE
61
+ ├── docs/ # ← Generated by devDocs
62
+ └── README.md # ← Overwritten by devDocs (if chosen)
63
+ ```
64
+
65
+ ---
66
+
67
+ ## ⚙️ How It Works
68
+
69
+ 1. **Scans** project directory and source files
70
+ 2. **Parses** content (code, comments, old README)
71
+ 3. **Generates** documentation via Google Gemini
72
+ 4. **Saves** output in Markdown format
73
+
74
+ ### Optional Features
75
+
76
+ * Preserve existing README (unless `--overwrite` is set)
77
+ * Include/exclude specific files or folders via filters
78
+
79
+ ---
80
+
81
+ ## 📦 Installation
82
+
83
+ Install via pip:
84
+
85
+ ```bash
86
+ pip install devDocs
87
+ ```
88
+
89
+ ---
90
+
91
+ ## 🔑 Requirements
92
+
93
+ * Python 3.8+
94
+ * Google Gemini API Key (get one at [Google AI Studio](https://aistudio.google.com/))
95
+
96
+ ---
97
+
98
+ ## 🚀 Usage
99
+
100
+ Run inside your project’s root:
101
+
102
+ ```bash
103
+ devDocs [OPTIONS]
104
+ ```
105
+
106
+ Paste your **Gemini API key** when prompted.
107
+
108
+ ### CLI Options
109
+
110
+ | Option | Description |
111
+ | --------------- | ------------------------------------------------- |
112
+ | `--path` | Root folder to scan (default: `.`) |
113
+ | `--name` | Project name to display in the README |
114
+ | `--description` | Short project summary |
115
+ | `--authors` | Comma-separated list of authors |
116
+ | `--keywords` | Comma-separated keywords (e.g., cli, docs, ai) |
117
+ | `--overwrite` | Overwrite existing `README.md` (default: False) |
118
+ | `--output` | Output folder (default: `docs/`) |
119
+ | `--exclude` | Comma-separated paths/extensions to exclude |
120
+ | `--include` | Comma-separated paths/extensions to force include |
121
+
122
+ ---
123
+
124
+ ### ✅ Example
125
+
126
+ ```bash
127
+ devDocs --path . \
128
+ --name "Cool Dev Tool" \
129
+ --description "Generate AI-based READMEs effortlessly" \
130
+ --authors "Gantavya Bansal" \
131
+ --keywords "cli, docs, automation" \
132
+ --output docs \
133
+ --overwrite
134
+ ```
135
+
136
+ ---
137
+
138
+ ## 🧠 Key Features
139
+
140
+ ✅ Auto-generates structured `README.md`
141
+ ✅ Respects original files unless `--overwrite`
142
+ ✅ Fine-grained include/exclude control
143
+ ✅ Generates a visual folder tree
144
+ ✅ Clean output in a dedicated `--output` folder
145
+ ✅ Backed by Google Gemini for high-quality results
146
+
147
+ ---
148
+
149
+ ## 🧱 Tech Stack
150
+
151
+ * Python 3.8+
152
+ * [`google-genai`](https://pypi.org/project/google-generativeai/)
153
+ * Built-in: `argparse`, `os`, `logging`, `time`
154
+
155
+ ---
156
+
157
+ ## 🛠️ Dev Notes
158
+
159
+ ### Workflow
160
+
161
+ ```
162
+ CLI args → Filter files → Extract context → Call Gemini → Write docs
163
+ ```
164
+
165
+ ### API Prompt Template
166
+
167
+ ```python
168
+ system_instruction = '''
169
+ You are Gantavya Bansal, a senior engineer and technical writer.
170
+ Generate professional Markdown documentation using context from code and folder structure.
171
+ Include:
172
+ - Title
173
+ - Folder Tree
174
+ - Description
175
+ - Usage
176
+ - Tech Stack
177
+ - Known Issues
178
+ - Licensing
179
+ '''
180
+ ```
181
+
182
+ ---
183
+
184
+ ## ⚠️ Limitations
185
+
186
+ * 📶 Requires internet (for Gemini API)
187
+ * 🔁 Retry logic for failed API calls is minimal
188
+ * ❌ Regex not yet supported in filters
189
+ * 📄 Only outputs `.md` format (Markdown)
190
+
191
+ ---
192
+
193
+ ## 📜 License
194
+
195
+ Released under the **MIT License**. Use, modify, and share freely — attribution appreciated.
196
+
197
+ ---
198
+
199
+ ## 🤝 Contribute
200
+
201
+ Found a bug or have an idea?
202
+ Open an issue or submit a PR — contributions are always welcome!
203
+
204
+ ---
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ devDocs = devDocs.cli:y
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "devDocs"
7
- version = "2.0.3"
7
+ version = "2.0.7"
8
8
  description = "AI-powered CLI tool that builds professional '*.md' documentation files of a project for internal teams using the Google Gemini API."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.8"
@@ -49,7 +49,7 @@ Issues = "https://github.com/bgantavya/devDocs/issues"
49
49
  Documentation = "https://github.com/bgantavya/devDocs#readme"
50
50
 
51
51
  [project.scripts]
52
- devDocs = "devDocs.cli:x"
52
+ devDocs = "devDocs.cli:y"
53
53
 
54
54
  [tool.setuptools]
55
55
  packages = ["devDocs"]
@@ -1,2 +1,2 @@
1
1
  from setuptools import setup,find_packages as A
2
- setup(name='devDocs',version='2.0.3',packages=A(),install_requires=['google-generativeai'],entry_points={'console_scripts':['devDocs=devDocs.cli:x']},author='Gantavya Bansal',description="Auto-generate Project's markdown documentation using Gemini AI for Internal teams.",long_description=open('README.md',encoding='utf-8').read(),long_description_content_type='text/markdown',license='MIT',python_requires='>=3.8',classifiers=['Programming Language :: Python :: 3','License :: OSI Approved :: MIT License'])
2
+ setup(name='devDocs',version='2.0.7',packages=A(),install_requires=['google-generativeai'],entry_points={'console_scripts':['devDocs=devDocs.cli:y']},author='Gantavya Bansal',description="Auto-generate Project's markdown documentation using Gemini AI for Internal teams.",long_description=open('README.md',encoding='utf-8').read(),long_description_content_type='text/markdown',license='MIT',python_requires='>=3.8',classifiers=['Programming Language :: Python :: 3','License :: OSI Approved :: MIT License'])
devdocs-2.0.3/PKG-INFO DELETED
@@ -1,250 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: devDocs
3
- Version: 2.0.3
4
- Summary: AI-powered CLI tool that builds professional '*.md' documentation files of a project for internal teams using the Google Gemini API.
5
- Author: Gantavya Bansal
6
- Author-email: Gantavya Bansal <gantavyaoo@gmail.com>
7
- License: MIT
8
- Project-URL: Homepage, https://github.com/bgantavya/devDocs
9
- Project-URL: Repository, https://github.com/bgantavya/devDocs
10
- Project-URL: Issues, https://github.com/bgantavya/devDocs/issues
11
- Project-URL: Documentation, https://github.com/bgantavya/devDocs#readme
12
- Keywords: cli,documentation,readme,generator,google-gemini,ai,markdown,docs-generator,auto-readme,open-source
13
- Classifier: Development Status :: 4 - Beta
14
- Classifier: Environment :: Console
15
- Classifier: Intended Audience :: Developers
16
- Classifier: Intended Audience :: Information Technology
17
- Classifier: Topic :: Documentation
18
- Classifier: Topic :: Software Development :: Code Generators
19
- Classifier: Topic :: Software Development :: Documentation
20
- Classifier: License :: OSI Approved :: MIT License
21
- Classifier: Programming Language :: Python :: 3
22
- Classifier: Programming Language :: Python :: 3.8
23
- Classifier: Programming Language :: Python :: 3.9
24
- Classifier: Programming Language :: Python :: 3.10
25
- Classifier: Programming Language :: Python :: 3.11
26
- Classifier: Operating System :: OS Independent
27
- Requires-Python: >=3.8
28
- Description-Content-Type: text/markdown
29
- Requires-Dist: google-genai
30
- Requires-Dist: httpx
31
- Dynamic: author
32
- Dynamic: requires-python
33
-
34
-
35
- ---
36
-
37
- # PKG NAME📘: `devDocs` – AI-powered automated project documentation writer
38
-
39
- `devDocs` is a **command-line tool** that automatically creates high-quality `README.md` files by analyzing your project’s **folder structure**, **source code**, and any existing documentation. It uses the **Google Gemini API** to generate clear, structured, and professional Markdown documentation.
40
-
41
- Perfect for:
42
-
43
- * Open-source contributors 💡
44
- * Developers maintaining internal tools 🛠️
45
- * Hackathon projects needing clean docs fast 🚀
46
-
47
- ---
48
-
49
- ## 📂 Example Project Structure
50
-
51
- Here’s how your project might look before and after using `devDocs`:
52
-
53
- ```bash
54
- your-project/
55
- ├── src/
56
- │ ├── main.py
57
- │ └── utils.py
58
- ├── tests/
59
- ├── requirements.txt
60
- ├── LICENSE
61
- └── README.md <-- Generated/Overwritten by devDocs
62
- ```
63
-
64
- ---
65
-
66
- ## ⚙️ How It Works (Behind the Scenes)
67
-
68
- Here's what happens when you run `devDocs`:
69
-
70
- 1. **Scans your project** – Analyzes directory structure, code files, and existing README files.
71
- 2. **Parses content** – Gathers code and documentation from each relevant file/folder.
72
- 3. **Generates documentation** – Sends context to Google Gemini API to craft a structured `README.md`.
73
- 4. **Saves output** – Writes the generated Markdown into your project (or into a custom output folder).
74
-
75
- 🔁 Optional features:
76
-
77
- * Preserves your original README unless you use `--overwrite`.
78
- * Includes/excludes specific files or folders with filters.
79
-
80
- ---
81
-
82
- ## 📦 Installation
83
-
84
- Install from PyPI:
85
-
86
- ```bash
87
- pip install devDocs
88
- ```
89
-
90
- ---
91
-
92
- ## 🔑 Requirements
93
-
94
- * **Python 3.8+**
95
- * **Google Gemini API Key**
96
- Get one from [Google AI Studio](https://aistudio.google.com/).
97
-
98
- ---
99
-
100
- ## 🚀 Usage
101
-
102
- Inside the root folder of your project, run:
103
-
104
- ```bash
105
- devDocs [OPTIONS]
106
- ```
107
-
108
- The CLI will prompt for your **Google Gemini API key**. Paste it once when asked.
109
-
110
- ### CLI Options
111
-
112
- | Option | Description |
113
- | --------------- | ------------------------------------------------------------- |
114
- | `--path` | Root path to scan (default: current directory) |
115
- | `--name` | Project name to display in the README |
116
- | `--description` | Short description for the project |
117
- | `--authors` | Comma-separated list of authors |
118
- | `--keywords` | Comma-separated list of keywords (e.g., cli, docs, auto) |
119
- | `--overwrite` | Overwrite existing `README.md` files (default: False) |
120
- | `--output` | Output folder to save generated docs (default: `docs/`) |
121
- | `--exclude` | Comma-separated folders/files/extensions to **exclude** |
122
- | `--include` | Comma-separated folders/files/extensions to **force include** |
123
-
124
- ---
125
-
126
- ### ✅ Example Command
127
-
128
- ```bash
129
- devDocs --path . \
130
- --name "Cool Dev Tool" \
131
- --description "Generate AI-based READMEs effortlessly" \
132
- --authors "Gantavya Bansal" \
133
- --keywords "cli, docs, automation, openai" \
134
- --output docs \
135
- --overwrite
136
- ```
137
-
138
- This will:
139
-
140
- * Walk through all folders from current directory
141
- * Create a `docs/README.md` and other structured markdowns
142
- * Overwrite existing README if one exists
143
-
144
- ---
145
-
146
- ## 🧠 Features
147
-
148
- * ✅ Generates structured, professional `README.md` files automatically
149
- * ✅ Preserves original docs unless `--overwrite` is set
150
- * ✅ Supports **include/exclude** filtering for granular control
151
- * ✅ Smart project tree visualization included in docs
152
- * ✅ Outputs all documentation to a single folder (`--output`)
153
- * ✅ Powered by Google Gemini AI (clean & readable Markdown)
154
-
155
- ---
156
-
157
- ## 🏗️ Example Output (Generated)
158
-
159
- Here’s a sample snippet of what the generated README might look like:
160
-
161
- ```
162
- # Cool Dev Tool
163
-
164
- This is a CLI tool for generating clean README.md files using Google Gemini.
165
-
166
- ## Folder Structure
167
- your-project/
168
- ├── src/
169
- │ ├── main.py
170
- │ └── utils.py
171
- ├── README.md
172
- ...
173
-
174
- ## Usage
175
- ...
176
- ```
177
-
178
- ---
179
-
180
- ## 🧱 Technologies Used
181
-
182
- * `Python 3.8+`
183
- * [`google-genai`](https://pypi.org/project/google-generativeai/)
184
- * `argparse`, `os`, `logging`, `time` – for CLI and system interaction
185
-
186
- ---
187
-
188
- ## 🧰 Developer Notes
189
-
190
- If you're contributing or extending this project:
191
-
192
- ### Core Files
193
-
194
- | File | Purpose |
195
- | ------------------ | ----------------------------------------------- |
196
- | `cli.py` | CLI interface + core logic |
197
- | `README.md` | The README template output (can be regenerated) |
198
- | `LookFolder()` | Recursive folder/file scanner |
199
- | `GenerateReadMe()` | Sends data to Gemini and processes results |
200
- | `print_tree()` | Generates folder structure view in tree format |
201
-
202
- ### Data Flow
203
-
204
- 1. CLI parses args →
205
- 2. Filters folders/files →
206
- 3. Reads source + existing docs →
207
- 4. Calls `GenerateReadMe()` →
208
- 5. Writes Markdown to output
209
-
210
- ### API Instruction Logic (Simplified)
211
-
212
- ```python
213
- system_instruction = '''
214
- You are Gantavya Bansal, a senior engineer and tech writer.
215
- Generate clean, professional Markdown documentation using code + structure context.
216
- Include:
217
- - Title
218
- - Folder Tree
219
- - Description
220
- - Usage
221
- - Tech Stack
222
- - Known Issues
223
- - Licensing
224
- '''
225
- ```
226
-
227
- ---
228
-
229
- ## ⚠️ Known Limitations
230
-
231
- * 📡 Needs an internet connection for Gemini API
232
- * 🔁 Limited retry logic for failed API calls
233
- * ⚙️ Include/exclude filters don't yet support regex
234
- * 📄 Only supports `.md` output format
235
-
236
- ---
237
-
238
- ## 📜 License
239
-
240
- **MIT License** – You’re free to use, modify, and share.
241
- Attribution is appreciated!
242
-
243
- ---
244
-
245
- ## 💬 Contributing
246
-
247
- Feel free to open issues, suggest improvements, or contribute directly.
248
- Pull requests are always welcome!
249
-
250
- ---
devdocs-2.0.3/README.md DELETED
@@ -1,217 +0,0 @@
1
-
2
- ---
3
-
4
- # PKG NAME📘: `devDocs` – AI-powered automated project documentation writer
5
-
6
- `devDocs` is a **command-line tool** that automatically creates high-quality `README.md` files by analyzing your project’s **folder structure**, **source code**, and any existing documentation. It uses the **Google Gemini API** to generate clear, structured, and professional Markdown documentation.
7
-
8
- Perfect for:
9
-
10
- * Open-source contributors 💡
11
- * Developers maintaining internal tools 🛠️
12
- * Hackathon projects needing clean docs fast 🚀
13
-
14
- ---
15
-
16
- ## 📂 Example Project Structure
17
-
18
- Here’s how your project might look before and after using `devDocs`:
19
-
20
- ```bash
21
- your-project/
22
- ├── src/
23
- │ ├── main.py
24
- │ └── utils.py
25
- ├── tests/
26
- ├── requirements.txt
27
- ├── LICENSE
28
- └── README.md <-- Generated/Overwritten by devDocs
29
- ```
30
-
31
- ---
32
-
33
- ## ⚙️ How It Works (Behind the Scenes)
34
-
35
- Here's what happens when you run `devDocs`:
36
-
37
- 1. **Scans your project** – Analyzes directory structure, code files, and existing README files.
38
- 2. **Parses content** – Gathers code and documentation from each relevant file/folder.
39
- 3. **Generates documentation** – Sends context to Google Gemini API to craft a structured `README.md`.
40
- 4. **Saves output** – Writes the generated Markdown into your project (or into a custom output folder).
41
-
42
- 🔁 Optional features:
43
-
44
- * Preserves your original README unless you use `--overwrite`.
45
- * Includes/excludes specific files or folders with filters.
46
-
47
- ---
48
-
49
- ## 📦 Installation
50
-
51
- Install from PyPI:
52
-
53
- ```bash
54
- pip install devDocs
55
- ```
56
-
57
- ---
58
-
59
- ## 🔑 Requirements
60
-
61
- * **Python 3.8+**
62
- * **Google Gemini API Key**
63
- Get one from [Google AI Studio](https://aistudio.google.com/).
64
-
65
- ---
66
-
67
- ## 🚀 Usage
68
-
69
- Inside the root folder of your project, run:
70
-
71
- ```bash
72
- devDocs [OPTIONS]
73
- ```
74
-
75
- The CLI will prompt for your **Google Gemini API key**. Paste it once when asked.
76
-
77
- ### CLI Options
78
-
79
- | Option | Description |
80
- | --------------- | ------------------------------------------------------------- |
81
- | `--path` | Root path to scan (default: current directory) |
82
- | `--name` | Project name to display in the README |
83
- | `--description` | Short description for the project |
84
- | `--authors` | Comma-separated list of authors |
85
- | `--keywords` | Comma-separated list of keywords (e.g., cli, docs, auto) |
86
- | `--overwrite` | Overwrite existing `README.md` files (default: False) |
87
- | `--output` | Output folder to save generated docs (default: `docs/`) |
88
- | `--exclude` | Comma-separated folders/files/extensions to **exclude** |
89
- | `--include` | Comma-separated folders/files/extensions to **force include** |
90
-
91
- ---
92
-
93
- ### ✅ Example Command
94
-
95
- ```bash
96
- devDocs --path . \
97
- --name "Cool Dev Tool" \
98
- --description "Generate AI-based READMEs effortlessly" \
99
- --authors "Gantavya Bansal" \
100
- --keywords "cli, docs, automation, openai" \
101
- --output docs \
102
- --overwrite
103
- ```
104
-
105
- This will:
106
-
107
- * Walk through all folders from current directory
108
- * Create a `docs/README.md` and other structured markdowns
109
- * Overwrite existing README if one exists
110
-
111
- ---
112
-
113
- ## 🧠 Features
114
-
115
- * ✅ Generates structured, professional `README.md` files automatically
116
- * ✅ Preserves original docs unless `--overwrite` is set
117
- * ✅ Supports **include/exclude** filtering for granular control
118
- * ✅ Smart project tree visualization included in docs
119
- * ✅ Outputs all documentation to a single folder (`--output`)
120
- * ✅ Powered by Google Gemini AI (clean & readable Markdown)
121
-
122
- ---
123
-
124
- ## 🏗️ Example Output (Generated)
125
-
126
- Here’s a sample snippet of what the generated README might look like:
127
-
128
- ```
129
- # Cool Dev Tool
130
-
131
- This is a CLI tool for generating clean README.md files using Google Gemini.
132
-
133
- ## Folder Structure
134
- your-project/
135
- ├── src/
136
- │ ├── main.py
137
- │ └── utils.py
138
- ├── README.md
139
- ...
140
-
141
- ## Usage
142
- ...
143
- ```
144
-
145
- ---
146
-
147
- ## 🧱 Technologies Used
148
-
149
- * `Python 3.8+`
150
- * [`google-genai`](https://pypi.org/project/google-generativeai/)
151
- * `argparse`, `os`, `logging`, `time` – for CLI and system interaction
152
-
153
- ---
154
-
155
- ## 🧰 Developer Notes
156
-
157
- If you're contributing or extending this project:
158
-
159
- ### Core Files
160
-
161
- | File | Purpose |
162
- | ------------------ | ----------------------------------------------- |
163
- | `cli.py` | CLI interface + core logic |
164
- | `README.md` | The README template output (can be regenerated) |
165
- | `LookFolder()` | Recursive folder/file scanner |
166
- | `GenerateReadMe()` | Sends data to Gemini and processes results |
167
- | `print_tree()` | Generates folder structure view in tree format |
168
-
169
- ### Data Flow
170
-
171
- 1. CLI parses args →
172
- 2. Filters folders/files →
173
- 3. Reads source + existing docs →
174
- 4. Calls `GenerateReadMe()` →
175
- 5. Writes Markdown to output
176
-
177
- ### API Instruction Logic (Simplified)
178
-
179
- ```python
180
- system_instruction = '''
181
- You are Gantavya Bansal, a senior engineer and tech writer.
182
- Generate clean, professional Markdown documentation using code + structure context.
183
- Include:
184
- - Title
185
- - Folder Tree
186
- - Description
187
- - Usage
188
- - Tech Stack
189
- - Known Issues
190
- - Licensing
191
- '''
192
- ```
193
-
194
- ---
195
-
196
- ## ⚠️ Known Limitations
197
-
198
- * 📡 Needs an internet connection for Gemini API
199
- * 🔁 Limited retry logic for failed API calls
200
- * ⚙️ Include/exclude filters don't yet support regex
201
- * 📄 Only supports `.md` output format
202
-
203
- ---
204
-
205
- ## 📜 License
206
-
207
- **MIT License** – You’re free to use, modify, and share.
208
- Attribution is appreciated!
209
-
210
- ---
211
-
212
- ## 💬 Contributing
213
-
214
- Feel free to open issues, suggest improvements, or contribute directly.
215
- Pull requests are always welcome!
216
-
217
- ---
@@ -1,250 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: devDocs
3
- Version: 2.0.3
4
- Summary: AI-powered CLI tool that builds professional '*.md' documentation files of a project for internal teams using the Google Gemini API.
5
- Author: Gantavya Bansal
6
- Author-email: Gantavya Bansal <gantavyaoo@gmail.com>
7
- License: MIT
8
- Project-URL: Homepage, https://github.com/bgantavya/devDocs
9
- Project-URL: Repository, https://github.com/bgantavya/devDocs
10
- Project-URL: Issues, https://github.com/bgantavya/devDocs/issues
11
- Project-URL: Documentation, https://github.com/bgantavya/devDocs#readme
12
- Keywords: cli,documentation,readme,generator,google-gemini,ai,markdown,docs-generator,auto-readme,open-source
13
- Classifier: Development Status :: 4 - Beta
14
- Classifier: Environment :: Console
15
- Classifier: Intended Audience :: Developers
16
- Classifier: Intended Audience :: Information Technology
17
- Classifier: Topic :: Documentation
18
- Classifier: Topic :: Software Development :: Code Generators
19
- Classifier: Topic :: Software Development :: Documentation
20
- Classifier: License :: OSI Approved :: MIT License
21
- Classifier: Programming Language :: Python :: 3
22
- Classifier: Programming Language :: Python :: 3.8
23
- Classifier: Programming Language :: Python :: 3.9
24
- Classifier: Programming Language :: Python :: 3.10
25
- Classifier: Programming Language :: Python :: 3.11
26
- Classifier: Operating System :: OS Independent
27
- Requires-Python: >=3.8
28
- Description-Content-Type: text/markdown
29
- Requires-Dist: google-genai
30
- Requires-Dist: httpx
31
- Dynamic: author
32
- Dynamic: requires-python
33
-
34
-
35
- ---
36
-
37
- # PKG NAME📘: `devDocs` – AI-powered automated project documentation writer
38
-
39
- `devDocs` is a **command-line tool** that automatically creates high-quality `README.md` files by analyzing your project’s **folder structure**, **source code**, and any existing documentation. It uses the **Google Gemini API** to generate clear, structured, and professional Markdown documentation.
40
-
41
- Perfect for:
42
-
43
- * Open-source contributors 💡
44
- * Developers maintaining internal tools 🛠️
45
- * Hackathon projects needing clean docs fast 🚀
46
-
47
- ---
48
-
49
- ## 📂 Example Project Structure
50
-
51
- Here’s how your project might look before and after using `devDocs`:
52
-
53
- ```bash
54
- your-project/
55
- ├── src/
56
- │ ├── main.py
57
- │ └── utils.py
58
- ├── tests/
59
- ├── requirements.txt
60
- ├── LICENSE
61
- └── README.md <-- Generated/Overwritten by devDocs
62
- ```
63
-
64
- ---
65
-
66
- ## ⚙️ How It Works (Behind the Scenes)
67
-
68
- Here's what happens when you run `devDocs`:
69
-
70
- 1. **Scans your project** – Analyzes directory structure, code files, and existing README files.
71
- 2. **Parses content** – Gathers code and documentation from each relevant file/folder.
72
- 3. **Generates documentation** – Sends context to Google Gemini API to craft a structured `README.md`.
73
- 4. **Saves output** – Writes the generated Markdown into your project (or into a custom output folder).
74
-
75
- 🔁 Optional features:
76
-
77
- * Preserves your original README unless you use `--overwrite`.
78
- * Includes/excludes specific files or folders with filters.
79
-
80
- ---
81
-
82
- ## 📦 Installation
83
-
84
- Install from PyPI:
85
-
86
- ```bash
87
- pip install devDocs
88
- ```
89
-
90
- ---
91
-
92
- ## 🔑 Requirements
93
-
94
- * **Python 3.8+**
95
- * **Google Gemini API Key**
96
- Get one from [Google AI Studio](https://aistudio.google.com/).
97
-
98
- ---
99
-
100
- ## 🚀 Usage
101
-
102
- Inside the root folder of your project, run:
103
-
104
- ```bash
105
- devDocs [OPTIONS]
106
- ```
107
-
108
- The CLI will prompt for your **Google Gemini API key**. Paste it once when asked.
109
-
110
- ### CLI Options
111
-
112
- | Option | Description |
113
- | --------------- | ------------------------------------------------------------- |
114
- | `--path` | Root path to scan (default: current directory) |
115
- | `--name` | Project name to display in the README |
116
- | `--description` | Short description for the project |
117
- | `--authors` | Comma-separated list of authors |
118
- | `--keywords` | Comma-separated list of keywords (e.g., cli, docs, auto) |
119
- | `--overwrite` | Overwrite existing `README.md` files (default: False) |
120
- | `--output` | Output folder to save generated docs (default: `docs/`) |
121
- | `--exclude` | Comma-separated folders/files/extensions to **exclude** |
122
- | `--include` | Comma-separated folders/files/extensions to **force include** |
123
-
124
- ---
125
-
126
- ### ✅ Example Command
127
-
128
- ```bash
129
- devDocs --path . \
130
- --name "Cool Dev Tool" \
131
- --description "Generate AI-based READMEs effortlessly" \
132
- --authors "Gantavya Bansal" \
133
- --keywords "cli, docs, automation, openai" \
134
- --output docs \
135
- --overwrite
136
- ```
137
-
138
- This will:
139
-
140
- * Walk through all folders from current directory
141
- * Create a `docs/README.md` and other structured markdowns
142
- * Overwrite existing README if one exists
143
-
144
- ---
145
-
146
- ## 🧠 Features
147
-
148
- * ✅ Generates structured, professional `README.md` files automatically
149
- * ✅ Preserves original docs unless `--overwrite` is set
150
- * ✅ Supports **include/exclude** filtering for granular control
151
- * ✅ Smart project tree visualization included in docs
152
- * ✅ Outputs all documentation to a single folder (`--output`)
153
- * ✅ Powered by Google Gemini AI (clean & readable Markdown)
154
-
155
- ---
156
-
157
- ## 🏗️ Example Output (Generated)
158
-
159
- Here’s a sample snippet of what the generated README might look like:
160
-
161
- ```
162
- # Cool Dev Tool
163
-
164
- This is a CLI tool for generating clean README.md files using Google Gemini.
165
-
166
- ## Folder Structure
167
- your-project/
168
- ├── src/
169
- │ ├── main.py
170
- │ └── utils.py
171
- ├── README.md
172
- ...
173
-
174
- ## Usage
175
- ...
176
- ```
177
-
178
- ---
179
-
180
- ## 🧱 Technologies Used
181
-
182
- * `Python 3.8+`
183
- * [`google-genai`](https://pypi.org/project/google-generativeai/)
184
- * `argparse`, `os`, `logging`, `time` – for CLI and system interaction
185
-
186
- ---
187
-
188
- ## 🧰 Developer Notes
189
-
190
- If you're contributing or extending this project:
191
-
192
- ### Core Files
193
-
194
- | File | Purpose |
195
- | ------------------ | ----------------------------------------------- |
196
- | `cli.py` | CLI interface + core logic |
197
- | `README.md` | The README template output (can be regenerated) |
198
- | `LookFolder()` | Recursive folder/file scanner |
199
- | `GenerateReadMe()` | Sends data to Gemini and processes results |
200
- | `print_tree()` | Generates folder structure view in tree format |
201
-
202
- ### Data Flow
203
-
204
- 1. CLI parses args →
205
- 2. Filters folders/files →
206
- 3. Reads source + existing docs →
207
- 4. Calls `GenerateReadMe()` →
208
- 5. Writes Markdown to output
209
-
210
- ### API Instruction Logic (Simplified)
211
-
212
- ```python
213
- system_instruction = '''
214
- You are Gantavya Bansal, a senior engineer and tech writer.
215
- Generate clean, professional Markdown documentation using code + structure context.
216
- Include:
217
- - Title
218
- - Folder Tree
219
- - Description
220
- - Usage
221
- - Tech Stack
222
- - Known Issues
223
- - Licensing
224
- '''
225
- ```
226
-
227
- ---
228
-
229
- ## ⚠️ Known Limitations
230
-
231
- * 📡 Needs an internet connection for Gemini API
232
- * 🔁 Limited retry logic for failed API calls
233
- * ⚙️ Include/exclude filters don't yet support regex
234
- * 📄 Only supports `.md` output format
235
-
236
- ---
237
-
238
- ## 📜 License
239
-
240
- **MIT License** – You’re free to use, modify, and share.
241
- Attribution is appreciated!
242
-
243
- ---
244
-
245
- ## 💬 Contributing
246
-
247
- Feel free to open issues, suggest improvements, or contribute directly.
248
- Pull requests are always welcome!
249
-
250
- ---
@@ -1,2 +0,0 @@
1
- [console_scripts]
2
- devDocs = devDocs.cli:x
File without changes
File without changes
File without changes