GitLexPy 🚀✨
Generate intelligent commit messages for your Git changes using AI. GitLex uses OpenAI's GPT models to craft meaningful commit messages based on your code diffs.
Table of Contents
Prerequisites
Ensure you have Python 3.x installed. If not, download and install it from Python's official site.
Installation 📦
- Clone the repository:
git clone https://github.com/krjordan/GitLexPy.git
cd GitLexPy
- Install the required dependencies:
pip install -r requirements.txt
Usage 🚀
To generate an AI-based commit message based on your git diff:
python3 gitlex.py --path /path/to/your/repo
Arguments:
--path (optional): Path to git repository. Default is the current directory.
If you want to check if your OpenAI API key is already stored and know where it is stored:
python3 gitlex.py --check-key
Note: The tool will prompt you for the OpenAI API key if it's not found in the configuration file. Your API key will be stored locally in the .gitlex-config.json file.
API Key Configuration 🔑
For GitLexPy to work, you'll need an OpenAI API key.
- Sign up for an API key with OpenAI.
- Once you've obtained your key, run
GitLexfor the first time, and it will prompt you to enter it. Your key will be stored locally and securely in.gitlex-config.jsonfor future use.
⚠️ Note: Never share your API key or commit it directly to your codebase.
Development Workflow 🛠
We follow the gitflow workflow. Here's a quick breakdown:
- Develop: This is the main development branch where all the changes are merged into.
- Release: When
developis stable and ready for a release, it's branched toreleasefor final testing. - Main: Once testing is complete and everything is stable,
releaseis merged intomain, triggering a deployment to PyPI via GitHub Actions.
Contributing 🤝
Contributions are welcome! Whether it's bug reports, feature requests, or new integrations, we'd love to see what you can come up with.
- Fork the repository.
- Make your changes on a new branch.
- Submit a pull request and describe your changes.
License 📄
GitLexPy is open-source software licensed under the MIT License. See the LICENSE file for more details.
Metadata
Release files for GitLexPy 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| GitLexPy-0.1.0.tar.gz | 4.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| GitLexPy-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.1 kB
Release files / GitLexPy-0.1.0.tar.gz
| Download URL | GitLexPy-0.1.0.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
16024754c0c638d971e1793bf8a0951b80e80b738820f74067c484888c13dc59
|
|
BLAKE2b-256 checksum How to use checksums |
44e754321f27bd134d7e8d24fe6a765bcfa225e720bb1909214c52d2a3fb5fa9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / GitLexPy-0.1.0-py3-none-any.whl
| Download URL | GitLexPy-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
93ff9aba85bb2d6148ecc44014d90008672b1b6efc83f7be285ac65e9154206c
|
|
BLAKE2b-256 checksum How to use checksums |
450a8fb5973504aff760ad870459588cf07da3388f3d18dd9e2fb6fa0dbf59e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|