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.1.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.1-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: commitmessagegenerator-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 335bd3f3972f93f045295d71ed585e3e53f37cce72290aa566bb963588c7278a
MD5 d119678f0fb320bd8f79e1d732bbf141
BLAKE2b-256 f2badfaf569c9c640c298d146760d28661d4c90d0f336b42876a341a99a20cb7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for commitmessagegenerator-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 430e49aa8cf0c74a78ff2a505a6741cc25fd2026aebedda9dbb3bf2e10c67558
MD5 e2be7588caa7deb8f20ea4668821e704
BLAKE2b-256 b9664f203e8042fff5f07ca5c0025dd851aa206317651cb63c6aeafcca0c2504

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