AI-powered Git commit message generator
Project description
Easy Commit
AI-powered Git commit message generator using Groq API.
Installation
pip install easy-commit
Usage
Stage your changes
git add .
It is neccesary to first stage all your changes. This picks up the code diffs from the staged changes.
Set your Groq API key as an environment variable:
export GROQ_API_KEY=your_groq_api_key_here
Or pass it as a command-line argument:
easy-commit --api-key your_groq_api_key_here
Optional arguments:
--trunc-diff: Maximum length of diff to analyze (default: 2048)--commit-len: Maximum length of commit message (default: 100)
Examples
easy-commit
Yes! Thats actually all it takes. You will be shown the commit message, and prompted to press enter to perform the commit
With arguments
easy-commit --trunc-diff 1024 --commit-len 50 --model-name "llama3-8b-8192"
Requirements
- Python 3.7+
- Groq API key
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
easy-commit-0.1.3.tar.gz
(3.5 kB
view details)
File details
Details for the file easy-commit-0.1.3.tar.gz.
File metadata
- Download URL: easy-commit-0.1.3.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb9d9865bdc8348d024b1edc4da959dbbcdc9d64fa79148451321f7e6773eefc
|
|
| MD5 |
b866ee38df002cbac917f1499242c9a7
|
|
| BLAKE2b-256 |
5da9ca966632a333db46eab80f0e6f26649231bf1681dff4826a2e7fdc96a2a6
|