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.1.tar.gz (16.3 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.1-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ghp-0.1.1.tar.gz
  • Upload date:
  • Size: 16.3 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.1.tar.gz
Algorithm Hash digest
SHA256 a70647781fa040b932374ad217fd8cf35701f83ce5ec86fc5e752f90b10078af
MD5 81b19ec31b7d4eafd1b942bdfffefbbd
BLAKE2b-256 ebab0d154208d474ae758816872bd33090fa628f013053f6dc9b7aa182b29926

See more details on using hashes here.

Provenance

The following attestation bundles were made for ghp-0.1.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: ghp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.9 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fdf63bb7ff33d9223b710d452ea30c5d412b748a27a62847439acedfb0e34fca
MD5 e59f6ebaa525aefc9d4a80c9b3919c72
BLAKE2b-256 55757cbd413de7403fc570e88cdc4845da52afa8186abeeb4b35648fd4d02d4a

See more details on using hashes here.

Provenance

The following attestation bundles were made for ghp-0.1.1-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