Gera mensagens de commit com IA a partir de git diff usando Gemini
Project description
commitgen
Gere mensagens de commit técnicas e objetivas com IA (Google Gemini) a partir do git diff.
📦 Instalação
pip install commitmessagegenerator
Ou, se estiver usando venv:
python -m venv venv
source venv/bin/activate # ou .\venv\Scripts\activate no Windows
pip install commitmessagegenerator
⚙️ Configuração
Crie um arquivo .env no diretório onde você executará o commitgen (geralmente a raiz do seu projeto Git):
GEMINI_API_KEY=sua-chave-da-api-do-gemini
🚀 Uso
No terminal, dentro de qualquer repositório Git com alterações pendentes, execute:
commitgen
O comando irá:
- Ler o
git diff; - Enviar para a API Gemini da Google;
- Retornar uma sugestão de mensagem de commit diretamente no terminal.
🧩 Requisitos
- Python 3.8 ou superior
- API Key do Gemini (Google Generative AI)
- Repositório Git iniciado
- Dependências Python:
GitPythongoogle-generativeaipython-dotenv
Instale tudo com:
pip install -r requirements.txt
📄 Licença
MIT License
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 commitmessagegenerator-0.1.4.tar.gz.
File metadata
- Download URL: commitmessagegenerator-0.1.4.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f80e2a7f6d2d018ca298966684d42f84e4ebe0ba65086e7dadbcd8f6288d92cf
|
|
| MD5 |
70ec5cf6938e37ddec785027509c4e64
|
|
| BLAKE2b-256 |
81b95e45a996dcc44d106a82b22c01fec91a70fdf730c982d803710d3f1494fc
|
File details
Details for the file commitmessagegenerator-0.1.4-py3-none-any.whl.
File metadata
- Download URL: commitmessagegenerator-0.1.4-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d0f7201684aefebdac029747c7f4a2a84ab1bbf23b212ed00334fd2d91e64b0
|
|
| MD5 |
729735269d0e9c0a2f8629d178fffac1
|
|
| BLAKE2b-256 |
d9aed5388ee3a146e81a7506ca13b3f26e9d64c8904617c1c9b9951d92449d0f
|