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

Uploaded Python 3

File details

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

File metadata

  • Download URL: ghp-0.1.2.tar.gz
  • Upload date:
  • Size: 16.6 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.2.tar.gz
Algorithm Hash digest
SHA256 64a69ff4fac136f6da8163a1717eb9b7521a77da78e57c3725cf1509eddc379d
MD5 6fdb4202eadd6a658c7391d4c1b2e232
BLAKE2b-256 10e57114d67a16b2ea929405719a0c691b22abe01dc2788284b7b2b1d11eb181

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: ghp-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 39b6e66ba80b42051f8de87fe4fd2e46587be46199ff12a9ad71a432c01fac72
MD5 16121e75e64a0ced10b381a395d663fc
BLAKE2b-256 5fe6bd4ebacaf34331e0ab003cdd9c655d42294476ccb60e5c15d119f350bd18

See more details on using hashes here.

Provenance

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