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

Uploaded Python 3

File details

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

File metadata

  • Download URL: commitmessagegenerator-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 a068de4c89109eb2dc12574376c660bad6cbfc54bcc063e2d8da6fce840458a1
MD5 9c006b683d9530a7b12ea8e9d6e0350f
BLAKE2b-256 3d9d3a569a2f30b04498b9ed6b9f7fe088b5bce8a9634ccddbd6e87aa8a8f36b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for commitmessagegenerator-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 754edaf395f8af3a018650c9a42e43a0d6711b96a5704f19bd6baebba8a88905
MD5 8a531b4812cf075d7fe818d0617b285a
BLAKE2b-256 1fdc47f38a15009f3896d94bb9d8f0dcb7cf929a0528b8b44980f0daf29f5911

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