repokit
Repo listing/filtering and CLI-entrypoint plumbing shared by repo-admin-style
scripts: fetch an account's repos via asyncgh, keep
the non-archived/non-fork (by default) ones matching an only/skip filter,
and run work over them in bounded parallel via
reconcilekit. No config-file loading, no sops,
no fork/exclude policy — those are a caller concern, which is why
list_repos's include_forks defaults to none included rather than reading
any file.
Published to PyPI as hugoh-repokit; imported as repokit.
API
Full API reference, generated from the docstrings:
hugoh.github.io/gh-workflows/repokit
(rebuilt on every push that touches this package — see
.github/workflows/docs.yml).
Example
import asyncio
from repokit import DEFAULT_OWNER, list_repos, run_cli
async def main(args) -> int:
repos = await list_repos(DEFAULT_OWNER, only=args.only, skip=args.skip)
for repo in repos:
print(repo.name)
return 0
def cli(argv: list[str]) -> int:
return run_cli(main, parse_args(argv))
Consumers
repo-admin/ (in this repo) uses it for repo_admin.py/activity.py,
consumed as a uv workspace member there — repo-admin/lib.py layers its
own config-file-backed fork/exclude policy, sops-based secrets, and
console/progress_bar/etc. re-exports from asyncgh/reconcilekit on
top, kept local since none of that is generic.
digest-action (a separate repo,
since GitHub Marketplace only publishes actions from a repository root)
consumes it as a regular PyPI dependency.
Release files for hugoh-repokit 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hugoh_repokit-0.1.0.tar.gz | 6.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hugoh_repokit-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.0 kB
Release files / hugoh_repokit-0.1.0.tar.gz
| Download URL | hugoh_repokit-0.1.0.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
df1510d6d64ae639ed621927ac9b84028bcef703d5fd3d3a8cba908eafb8aadf
|
|
BLAKE2b-256 checksum How to use checksums |
25aa35297d7bfef15b7da4e91e95bc62994e401adedbb0f097a6b2e44274edf9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 4, 2026.
Transparency logRelease files / hugoh_repokit-0.1.0-py3-none-any.whl
| Download URL | hugoh_repokit-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fd3ffa2b9cb24a48655d3a2a5358c9be5191411265da42a54ee16353e0e14dfc
|
|
BLAKE2b-256 checksum How to use checksums |
a28f33fdf027d77a198a424c5bd443db7141db9bcab9417268b3dcc4e4174918
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 4, 2026.
Transparency log