AI-powered explanations for GitHub issues using LangChain
Project description
ghexplain
A Python library that provides AI-powered explanations for GitHub issues using LangChain.
Installation
pip install ghexplain
Usage
Python API
import ghexplain
# Get a summary of a GitHub issue
summary = ghexplain.issue("https://github.com/owner/repo/issues/123")
# Get a summary in a specific language
summary_es = ghexplain.issue("https://github.com/owner/repo/issues/123", language="spanish")
Command Line Interface
The package provides a CLI tool that can be used directly from your terminal:
# Export github token as environment
export GITHUB_TOKEN=$(gh auth token)
# Basic usage
ghexplain https://github.com/owner/repo/issues/123
# Get summary in a different language
ghexplain https://github.com/owner/repo/issues/123 -l spanish
# Show help
ghexplain --help
You can also use it with python -m:
python -m ghexplain.cli https://github.com/owner/repo/issues/123
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ghexplain-0.0.3.tar.gz
(16.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
ghexplain-0.0.3-py3-none-any.whl
(16.8 kB
view details)
File details
Details for the file ghexplain-0.0.3.tar.gz.
File metadata
- Download URL: ghexplain-0.0.3.tar.gz
- Upload date:
- Size: 16.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa192b5acf9533f562bae3be500eb23e67b1dd521e7cfa5f49e3375da58bc287
|
|
| MD5 |
9f23575f7747f4c0aa5a293042b7a162
|
|
| BLAKE2b-256 |
8cf113374ce5342e612deaba271e3b8d6170e5efae0da0aa35f4eb729a1c9090
|
File details
Details for the file ghexplain-0.0.3-py3-none-any.whl.
File metadata
- Download URL: ghexplain-0.0.3-py3-none-any.whl
- Upload date:
- Size: 16.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f458cfe17fd3a565d985370b43b2c41022505ec419becfc205a906449dafdcb7
|
|
| MD5 |
ebdd9b1cd219a55d938448f8efaa5af0
|
|
| BLAKE2b-256 |
d03617030991c35c83c3dff8f91fb6aebd30afc83d178017993ada42a8008b51
|