Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ghexplain-0.0.3-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

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

Hashes for ghexplain-0.0.3.tar.gz
Algorithm Hash digest
SHA256 fa192b5acf9533f562bae3be500eb23e67b1dd521e7cfa5f49e3375da58bc287
MD5 9f23575f7747f4c0aa5a293042b7a162
BLAKE2b-256 8cf113374ce5342e612deaba271e3b8d6170e5efae0da0aa35f4eb729a1c9090

See more details on using hashes here.

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

Hashes for ghexplain-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f458cfe17fd3a565d985370b43b2c41022505ec419becfc205a906449dafdcb7
MD5 ebdd9b1cd219a55d938448f8efaa5af0
BLAKE2b-256 d03617030991c35c83c3dff8f91fb6aebd30afc83d178017993ada42a8008b51

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