gitwit 0.1.0__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.
@@ -0,0 +1,201 @@
1
+ Metadata-Version: 2.4
2
+ Name: gitwit
3
+ Version: 0.1.0
4
+ Summary: AI-powered git commit messages, PR descriptions, and changelogs using free APIs
5
+ Project-URL: Homepage, https://github.com/MazadiaS/gitwit
6
+ Project-URL: Repository, https://github.com/MazadiaS/gitwit
7
+ Project-URL: Issues, https://github.com/MazadiaS/gitwit/issues
8
+ Author: GitWit Contributors
9
+ License-Expression: MIT
10
+ License-File: LICENSE
11
+ Keywords: ai,cli,commit,gemini,git,groq,llm,ollama
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Environment :: Console
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: License :: OSI Approved :: MIT License
16
+ Classifier: Operating System :: OS Independent
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3.10
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Topic :: Software Development :: Version Control :: Git
22
+ Requires-Python: >=3.10
23
+ Requires-Dist: click>=8.0.0
24
+ Requires-Dist: httpx>=0.25.0
25
+ Requires-Dist: tomli-w>=1.0.0
26
+ Requires-Dist: tomli>=2.0.0; python_version < '3.11'
27
+ Provides-Extra: dev
28
+ Requires-Dist: pytest-asyncio>=0.21.0; extra == 'dev'
29
+ Requires-Dist: pytest>=7.0.0; extra == 'dev'
30
+ Description-Content-Type: text/markdown
31
+
32
+ # GitWit
33
+
34
+ [![PyPI version](https://badge.fury.io/py/gitwit.svg)](https://badge.fury.io/py/gitwit)
35
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
36
+ [![Python 3.10+](https://img.shields.io/badge/python-3.10+-blue.svg)](https://www.python.org/downloads/)
37
+
38
+ **Stop wasting time writing commit messages.** GitWit generates meaningful, conventional commit messages using AI — completely free.
39
+
40
+ ```
41
+ $ gitwit commit
42
+
43
+ Analyzing 3 file(s): +147 -12
44
+ Generating commit message using groq (llama-3.3-70b-versatile)...
45
+
46
+ Generated commit message:
47
+
48
+ feat(auth): add OAuth2 login with Google provider
49
+
50
+ Options: [y]es, [e]dit, [r]egenerate, [n]o/cancel
51
+ Accept this message? [y]: y
52
+
53
+ Committed successfully!
54
+ [main 8f3a2b1] feat(auth): add OAuth2 login with Google provider
55
+ ```
56
+
57
+ ## Why GitWit?
58
+
59
+ | Feature | GitWit | aicommits | GitHub Copilot |
60
+ |---------|--------|-----------|----------------|
61
+ | **Price** | Free forever | Free (limited) | $10/month |
62
+ | **API Key** | Free (Groq/Gemini) | Requires OpenAI ($) | Subscription |
63
+ | **Local Option** | Yes (Ollama) | No | No |
64
+ | **PR Descriptions** | Yes | No | Yes |
65
+ | **Conventional Commits** | Yes | Yes | Sometimes |
66
+ | **Edit/Regenerate** | Yes | Limited | No |
67
+
68
+ ## Quick Start (3 commands)
69
+
70
+ ```bash
71
+ # 1. Install
72
+ pip install gitwit
73
+
74
+ # 2. Configure (one-time, 30 seconds)
75
+ gitwit config init
76
+
77
+ # 3. Use it
78
+ git add .
79
+ gitwit commit
80
+ ```
81
+
82
+ That's it. Your first AI-powered commit in under a minute.
83
+
84
+ ## Features
85
+
86
+ - **Commit Messages** — Generate conventional commits from staged changes
87
+ - **PR Descriptions** — Generate title + description from branch diffs
88
+ - **Multiple Providers** — Groq, Google Gemini, or local Ollama
89
+ - **Interactive** — Accept, edit, regenerate, or cancel
90
+ - **Fast** — Sub-second generation with Groq
91
+
92
+ ## Installation
93
+
94
+ ```bash
95
+ pip install gitwit
96
+ ```
97
+
98
+ Requires Python 3.10+
99
+
100
+ ## Configuration
101
+
102
+ ### Interactive Setup (Recommended)
103
+
104
+ ```bash
105
+ gitwit config init
106
+ ```
107
+
108
+ This walks you through choosing a provider and setting your API key.
109
+
110
+ ### Manual Setup
111
+
112
+ ```bash
113
+ # Set provider (groq, gemini, or ollama)
114
+ gitwit config set provider groq
115
+
116
+ # Set API key (not needed for Ollama)
117
+ gitwit config set api-key YOUR_API_KEY
118
+
119
+ # View config
120
+ gitwit config show
121
+ ```
122
+
123
+ ## Usage
124
+
125
+ ### Generate Commit Message
126
+
127
+ ```bash
128
+ # From staged changes
129
+ git add src/
130
+ gitwit commit
131
+
132
+ # Stage all + commit
133
+ gitwit commit --all
134
+
135
+ # Auto-accept (no confirmation)
136
+ gitwit commit --yes
137
+
138
+ # Dry run (preview only)
139
+ gitwit commit --dry-run
140
+ ```
141
+
142
+ ### Generate PR Description
143
+
144
+ ```bash
145
+ # Compare current branch to main
146
+ gitwit pr
147
+
148
+ # Specify base branch
149
+ gitwit pr --base develop
150
+
151
+ # Dry run
152
+ gitwit pr --dry-run
153
+ ```
154
+
155
+ ## Why Free?
156
+
157
+ GitWit uses AI providers with generous free tiers:
158
+
159
+ | Provider | Free Tier | Speed | Best For |
160
+ |----------|-----------|-------|----------|
161
+ | **Groq** | 30 req/min | Fastest | Daily use |
162
+ | **Gemini** | 1,500 req/day | Fast | High volume |
163
+ | **Ollama** | Unlimited | Varies | Privacy, offline |
164
+
165
+ **Groq** is recommended — it's the fastest inference provider and the free tier is more than enough for individual developers.
166
+
167
+ ### Get Your Free API Key
168
+
169
+ - **Groq**: [console.groq.com](https://console.groq.com) (instant, no credit card)
170
+ - **Gemini**: [aistudio.google.com](https://aistudio.google.com) (instant, no credit card)
171
+ - **Ollama**: [ollama.ai](https://ollama.ai) (runs locally, no API key needed)
172
+
173
+ ## How It Works
174
+
175
+ 1. GitWit reads your staged changes (`git diff --cached`)
176
+ 2. Sends the diff to your chosen AI provider
177
+ 3. AI generates a conventional commit message
178
+ 4. You review, edit, regenerate, or accept
179
+ 5. GitWit runs `git commit` with your approved message
180
+
181
+ Your code never leaves your machine when using Ollama.
182
+
183
+ ## Contributing
184
+
185
+ Contributions welcome! Please open an issue or PR.
186
+
187
+ ```bash
188
+ # Development setup
189
+ git clone https://github.com/MazadiaS/gitwit.git
190
+ cd gitwit
191
+ pip install -e ".[dev]"
192
+ pytest
193
+ ```
194
+
195
+ ## License
196
+
197
+ MIT — use it however you want.
198
+
199
+ ---
200
+
201
+ **Like GitWit?** Give it a ⭐ on [GitHub](https://github.com/MazadiaS/gitwit)!
@@ -0,0 +1,12 @@
1
+ gitwit/__init__.py,sha256=HOgI5ZNgW_gtDehE1pd0oSf2K3r0YGuDz4USiV6U7jo,121
2
+ gitwit/ai.py,sha256=OEYgVMoKlchFL0OD5vFfVJBTB1gnClmhfjKHROjWhng,9945
3
+ gitwit/cli.py,sha256=M1ptTCQpbDbZF1nsNUPBktJFsrqi6yytvrBNYMERVVI,16469
4
+ gitwit/config.py,sha256=remDuYt_Y-LW6m3wYzu82mfmx9rh_QONHwI5ZjvxZXU,3756
5
+ gitwit/git.py,sha256=_4eHmOrxpDtcIoKw9ltySOFDGLS35RBvjc9kQifcDqw,7779
6
+ gitwit/license.py,sha256=SKzq8bkIllXv-N8nl3rrpOJQY_zi9LUk7uXxNRn3vO0,3395
7
+ gitwit/prompts.py,sha256=b2seG4gg_NAwgelEBeIJffil-QqNnBFPUM_k-oxK8f4,4943
8
+ gitwit-0.1.0.dist-info/METADATA,sha256=FcNmYjjb80uvE6F3jGiVnWctGd-6x92UzsLLouR-UkM,5296
9
+ gitwit-0.1.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
10
+ gitwit-0.1.0.dist-info/entry_points.txt,sha256=S-SLzShZN_MQ_eOSZ3PkKZn9BsD1a99hQhV_74DwY7E,43
11
+ gitwit-0.1.0.dist-info/licenses/LICENSE,sha256=4OzyL-5X29jLq67l7tKYR0AZenzr5GM95O0mad8-704,1076
12
+ gitwit-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.28.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ gitwit = gitwit.cli:main
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 GitWit Contributors
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.