AI-powered commit message generator
Project description
commit-crafter-ai
An AI-powered commit message generator that uses either OpenAI's GPT models or Ollama's local models to create meaningful git commit messages.
Installation
pip install commit-crafter-ai
Usage
Craft a commit message and directly create a commit
Default client is OpenAI:
commit-crafter-ai craft
If you want to use ollama:
commit-crafter-ai craft --ollama
Craft a commit message and copy it to clipboard
If you want to copy the commit message to clipboard instead of directly creating a commit:
commit-crafter-ai craft --copy
License
This project is licensed under the MIT License - see the LICENSE file for details.
Features
- Generates clear and concise commit messages
- Follows conventional commit format
- Provides detailed descriptions of changes
- Easy to use command-line interface
Requirements
- Python 3.7+
- OpenAI API key
Setup
- Export your OpenAI API key:
# Linux/macOS
export OPENAI_API_KEY="your-api-key-here"
# Windows (Command Prompt)
set OPENAI_API_KEY=your-api-key-here
# Windows (PowerShell)
$env:OPENAI_API_KEY="your-api-key-here"
- The API key can also be added to your shell configuration file (~/.bashrc, ~/.zshrc, etc.) for persistence:
echo 'export OPENAI_API_KEY="your-api-key-here"' >> ~/.bashrc # or ~/.zshrc
Project details
Release history Release notifications | RSS feed
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 commit_crafter_ai-1.3.1.tar.gz.
File metadata
- Download URL: commit_crafter_ai-1.3.1.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b46dae1f62f24d5e89b738ad85a333ad1951cf949eea8962b967342730d07bf
|
|
| MD5 |
7a23198656074181d05402749b8c903a
|
|
| BLAKE2b-256 |
4e551e2875c75fc7db4eaefda8ba93a5720a2c42d02cda912f3832a5bf1c94ad
|
File details
Details for the file commit_crafter_ai-1.3.1-py3-none-any.whl.
File metadata
- Download URL: commit_crafter_ai-1.3.1-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
54c79853a92d2b950c788eea059a1c8f1afcbe5118f3e788434a44b2d3c20527
|
|
| MD5 |
2375b2fbccd93811e275ae6afceff539
|
|
| BLAKE2b-256 |
3a9eaa72c442fd871dc361d7a881efe112ad1f13d5d3955d3c69d00859560d3e
|