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-timestampin the current working directory when--sinceis omitted. - Successful runs autosave the current timestamp back to
.ghp-last-update-timestamp. --sinceaccepts 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.
--jsonprints a machine-readable payload; on failure it emits a JSON object with anerrorfield and exits non-zero.
Auth
Looks for tokens in this order:
$GITHUB_PAT$GITHUB_TOKEN$GH_TOKENgh 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a70647781fa040b932374ad217fd8cf35701f83ce5ec86fc5e752f90b10078af
|
|
| MD5 |
81b19ec31b7d4eafd1b942bdfffefbbd
|
|
| BLAKE2b-256 |
ebab0d154208d474ae758816872bd33090fa628f013053f6dc9b7aa182b29926
|
Provenance
The following attestation bundles were made for ghp-0.1.1.tar.gz:
Publisher:
publish.yml on wakamex/ghp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ghp-0.1.1.tar.gz -
Subject digest:
a70647781fa040b932374ad217fd8cf35701f83ce5ec86fc5e752f90b10078af - Sigstore transparency entry: 1066676759
- Sigstore integration time:
-
Permalink:
wakamex/ghp@cd1d5f0892b79ac1643f2795e37ff1d33ff1eb2d -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/wakamex
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@cd1d5f0892b79ac1643f2795e37ff1d33ff1eb2d -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fdf63bb7ff33d9223b710d452ea30c5d412b748a27a62847439acedfb0e34fca
|
|
| MD5 |
e59f6ebaa525aefc9d4a80c9b3919c72
|
|
| BLAKE2b-256 |
55757cbd413de7403fc570e88cdc4845da52afa8186abeeb4b35648fd4d02d4a
|
Provenance
The following attestation bundles were made for ghp-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on wakamex/ghp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ghp-0.1.1-py3-none-any.whl -
Subject digest:
fdf63bb7ff33d9223b710d452ea30c5d412b748a27a62847439acedfb0e34fca - Sigstore transparency entry: 1066676762
- Sigstore integration time:
-
Permalink:
wakamex/ghp@cd1d5f0892b79ac1643f2795e37ff1d33ff1eb2d -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/wakamex
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@cd1d5f0892b79ac1643f2795e37ff1d33ff1eb2d -
Trigger Event:
release
-
Statement type: