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.0.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.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ghp-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 723c22cdb44f40b924d99af03a39424e3feb9cd4fab3f6d7dd2f4e274077dbfa
MD5 288b8d039ff6c1d06aad1886df7f8f6a
BLAKE2b-256 809fd78d8b45146d6b51a489fd329260eb11302381078c17bfbe95f19b67ae58

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: ghp-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4514c3217708f680cb9b13302b2a585c665113dda70ac95294411a9fe2b8dda5
MD5 ffdfd388a822d120503fc2310a5f9f9c
BLAKE2b-256 f8ad0e78203f1b6782db88add22d6b1fd08125d56b6183e0303c11c1be8f4b09

See more details on using hashes here.

Provenance

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