Skip to main content

Gera mensagens de commit com IA a partir de git diff usando Gemini

Reason this release was yanked:

Essa versão está quebrada

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:
    • GitPython
    • google-generativeai
    • python-dotenv

Instale tudo com:

pip install -r requirements.txt

📄 Licença

MIT License

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

commitmessagegenerator-0.1.2.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

commitmessagegenerator-0.1.2-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file commitmessagegenerator-0.1.2.tar.gz.

File metadata

  • Download URL: commitmessagegenerator-0.1.2.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

Hashes for commitmessagegenerator-0.1.2.tar.gz
Algorithm Hash digest
SHA256 eaf67619e2d7a9e3f2546484384ce63a060776f4521ee206662a9f8694093dbb
MD5 65b5ec3ad7eb7fd3bc38d78b398f3499
BLAKE2b-256 ba8ce1bb7fe6f6a7e197bb12a608b2fb5582e79d5c76ac8707910619673f16b5

See more details on using hashes here.

File details

Details for the file commitmessagegenerator-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for commitmessagegenerator-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 491a279e70be25160b205825a5abcc841b0640d3d755e6f3a1bb02ebd3e99fa7
MD5 d94e7a76bd0553c0bb2844f60394a0d0
BLAKE2b-256 e244a8d75f315faa4986d5bc5868640c61bf7e4232567ca8b372f89c3976d8db

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page