Generate clean git commit messages from files or AI
Project description
CommitWise
CommitWise is a smart and simple tool for generating clean Git commit messages. It can create commit messages from a text file or using AI models.
With CommitWise, your commits are always:
- Clean and readable
- Following Git best practices
- Well-structured and informative
Features
-
Generate commits from text files, preserving exact formatting, spacing, and paragraphs
-
Generate commits using AI (local with Ollama or OpenAI API)
-
Simple and easy-to-use CLI with only a few flags
-
Works seamlessly in any Git project
Requirements
-
Python >=
3.9 -
For local AI :
Ollamainstalled and the desired model downloaded -
For online AI :
OpenAI API Key(if using OpenAI)
Installation
$> pip install commitwise
AI Configuration
CommitWise supports two AI modes:
-
Local AI using Ollama (recommended)
-
OpenAI API
You only need to configure ONE of them.
Local AI (Ollama)
Install Ollama: https://ollama.com
Download a model :
$> ollama pull llama3Make sure Ollama is running:
$> ollama serveCommitWise will automatically detect Ollama at :
http://localhost:11434No additional configuration is required.
OpenAI Configuration
If you prefer using OpenAI instead of local AI, set your
API-KEYas an environment variable.
Windows :
$> setx OPENAI_API_KEY "your_api_key_here"Linux / macOS :
$> export OPENAI_API_KEY="your_api_key_here"CommitWise will automatically use OpenAI when the API key is available.
Usage
Generate commit from AI (local or OpenAI):
$> commitwise --ai
Generate commit from a text file:
$> commitwise --file ./my_commit.txt
Show help:
$> commitwise --help
Professional Note
CommitWise ensures that AI-generated commit messages are clean and Git-ready, without extra explanations, markdown, or educational text. This is guaranteed through strict prompting and output cleaning.
Links
Support
If CommitWise is helpful, please give it a star on GitHub so others can find it!
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file commitwise-0.1.6.tar.gz.
File metadata
- Download URL: commitwise-0.1.6.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
921bfd2ce6ccd7f618891bdedbcf316a1afd522c7f7fbeaac52a668b4430ef87
|
|
| MD5 |
a80940c29f7bbe7a34816a2c4b23627c
|
|
| BLAKE2b-256 |
2c2f816b7f783f925be92b321416a5e679a8bbcafeafd48ad322c41265d73a7e
|
Provenance
The following attestation bundles were made for commitwise-0.1.6.tar.gz:
Publisher:
release.yml on hasssan-hasssan/commitwise
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
commitwise-0.1.6.tar.gz -
Subject digest:
921bfd2ce6ccd7f618891bdedbcf316a1afd522c7f7fbeaac52a668b4430ef87 - Sigstore transparency entry: 793135138
- Sigstore integration time:
-
Permalink:
hasssan-hasssan/commitwise@dc728268470a491eca1e9dc5ba0c9c6b455851a4 -
Branch / Tag:
refs/tags/v0.1.6 - Owner: https://github.com/hasssan-hasssan
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@dc728268470a491eca1e9dc5ba0c9c6b455851a4 -
Trigger Event:
push
-
Statement type:
File details
Details for the file commitwise-0.1.6-py3-none-any.whl.
File metadata
- Download URL: commitwise-0.1.6-py3-none-any.whl
- Upload date:
- Size: 11.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b44eb9d4e3398f61a17f931098e885524a59ed25a1ccd34155846e150b67d72d
|
|
| MD5 |
22eb54afc3bb65f478036970a5238b6e
|
|
| BLAKE2b-256 |
97a5bed93ef5e5dd2da4fab0d0921222bf3f9190f9e1383cbb12c767069e8637
|
Provenance
The following attestation bundles were made for commitwise-0.1.6-py3-none-any.whl:
Publisher:
release.yml on hasssan-hasssan/commitwise
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
commitwise-0.1.6-py3-none-any.whl -
Subject digest:
b44eb9d4e3398f61a17f931098e885524a59ed25a1ccd34155846e150b67d72d - Sigstore transparency entry: 793135196
- Sigstore integration time:
-
Permalink:
hasssan-hasssan/commitwise@dc728268470a491eca1e9dc5ba0c9c6b455851a4 -
Branch / Tag:
refs/tags/v0.1.6 - Owner: https://github.com/hasssan-hasssan
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@dc728268470a491eca1e9dc5ba0c9c6b455851a4 -
Trigger Event:
push
-
Statement type: