Skip to main content

Stateless GitHub activity summary — compact, LLM-friendly output

Project description

ghp

Stateless GitHub activity summary. Compact, LLM-friendly output.

Install

uv tool install ghp
# or
uvx ghp

Dev

uv sync --group dev
uv run ghp --version

Usage

ghp                                   # open issues + PRs snapshot
ghp 1h                                # deltas since 1 hour ago
ghp 2026-03-07T14:00:00Z              # deltas since timestamp
ghp --json                            # machine-readable output
ghp --me @clod                        # highlight mentions
ghp --repo owner/name                 # explicit repo
# default delta cursor comes from .ghp-last-update-timestamp if present

Behavior

  • Cursor defaults to .ghp-last-update-timestamp in the current working directory when --since is omitted.
  • Successful runs autosave the current timestamp back to .ghp-last-update-timestamp.
  • --since accepts relative shorthands (30m, 2h, 1d, 1w) and normalizes timestamps to canonical UTC.
  • Snapshot mode returns open issues and open PRs.
  • Delta mode returns issues, PRs, issue comments, PR review comments, and recent commits since the cutoff.
  • API or auth failures exit non-zero instead of silently pretending there was no activity.
  • --json prints a machine-readable payload; on failure it emits a JSON object with an error field and exits non-zero.

Auth

Looks for tokens in this order:

  1. $GITHUB_PAT
  2. $GITHUB_TOKEN
  3. $GH_TOKEN
  4. gh auth token (gh CLI)

Test

uv run python -m unittest discover -s tests
scripts/test-install.sh

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

ghp-0.1.4.tar.gz (16.4 kB view details)

Uploaded Source

Built Distribution

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

ghp-0.1.4-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file ghp-0.1.4.tar.gz.

File metadata

  • Download URL: ghp-0.1.4.tar.gz
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ghp-0.1.4.tar.gz
Algorithm Hash digest
SHA256 da8e903b968d3d62c896b0e13de3b07d2d30b146bb263062eff87c3f68be11ef
MD5 d1de84c7422c0df8307c9ee0d6fd1d55
BLAKE2b-256 cf48ff5a6238fb92b38d79c22b52cbd0897250c18847f7be8a3327f0a866e917

See more details on using hashes here.

Provenance

The following attestation bundles were made for ghp-0.1.4.tar.gz:

Publisher: publish.yml on wakamex/ghp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ghp-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: ghp-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ghp-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d62da6394d35f0755ac0a6cbe5d94fc528a67c80b0b37f18eb185c0ab95651cc
MD5 64d7c8d6a4b780f7e218d8d0e32827ef
BLAKE2b-256 46704631c16ea6c04539f826bf0905bab4e479a04c9e58f4bec3fbde41e139d4

See more details on using hashes here.

Provenance

The following attestation bundles were made for ghp-0.1.4-py3-none-any.whl:

Publisher: publish.yml on wakamex/ghp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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