Skip to main content

Easy Commit

AI-powered Git commit message generator

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.

Save your default provider configuration

You can set the provider and api-key once when you first run it, after that you will be able to run it in any project or IDE.

easy-commit --provider groq --api-key your-api-key --save-config

Arguments:

  • --diff-size : Maximum length of diff to analyze (default: 2048)
  • --trunc-diff: Flag to include multiple diffs or truncate the diff (default: False)

Easy commit now supports bigger diffs, it splits those diffs into chunks and summarizes all the changes into a single message. use it when you have a lot of code changes, but be carefull as this might use a lot of tokens

  • --commit-len: Maximum length of commit message (default: 100)
  • --provider : API provider to use for LLM functionality (default: groq)
  • --api-key : API key for the selected LLM provider
  • --save-config : Flag to save the provided configuration of easier accesability later (default: False)

Check providers.yaml for the providers supported and their default models.

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 --diff-size 1024 --commit-len 50 --provider groq --api-key your-api-key

Requirements

  • Python 3.7+
  • Groq API key

Metadata

Release files for easy-commit 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for easy-commit 0.2.1
File Size Uploaded Provenance Actions
easy-commit-0.2.1.tar.gz 6.9 kB Without provenance Details for easy-commit-0.2.1.tar.gz

Release files / easy-commit-0.2.1.tar.gz

Download URL easy-commit-0.2.1.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
704a5222ffc8339a78de9b2739e97c13faf347b10917d0b2b0600049ed5b4c0d
BLAKE2b-256 checksum
How to use checksums
73957e78c0605d8fdbe6b6cbb53fba8ee6d20288df02d9aa1b33aef29a4fcfea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.11.4

Security for easy-commit 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page