Skip to main content

repokit

PyPI

A small toolkit for scripts that operate over a GitHub account's repos: fetch them via asyncgh, keep the non-archived/non-fork (by default) ones matching an only/skip filter, run an async CLI entrypoint with shared-client cleanup (run_cli), and fan work out over the repos in bounded parallel via reconcilekit (run_parallel). 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
import os

from repokit import list_repos, run_cli


async def main(args) -> int:
    repos = await list_repos(os.environ["GH_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 the full surface for repo_admin.py/activity.py, consumed as a uv workspace member — 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 for list_repos + run_cli.

Release files for hugoh-repokit 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hugoh-repokit 0.2.0
File Size Uploaded
hugoh_repokit-0.2.0.tar.gz 5.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hugoh-repokit 0.2.0
File Interpreter ABI Platform
hugoh_repokit-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.0 kB

Release files / hugoh_repokit-0.2.0.tar.gz

Download URL hugoh_repokit-0.2.0.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
4b8409ad0b904f8ca99d7afa3a8ca7f1fbad2822cf4316be976849e4edb0cbd1
BLAKE2b-256 checksum
How to use checksums
846970f3c82efa3dd41b4dc7b27fb526e21920493aa19f6a4c7dec5ffb2e6924
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 6, 2026.

Transparency log

Release files / hugoh_repokit-0.2.0-py3-none-any.whl

Download URL hugoh_repokit-0.2.0-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
daff3c66b3b4645548c56c065d3957e80f9b255bbefc3ebcf03986faa46ece15
BLAKE2b-256 checksum
How to use checksums
4c33c2b74b81edf83898ad83d1f1375610a7c528b6098e5eed1b3f0b25ce2bad
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 6, 2026.

Transparency log

Release history Release notifications | RSS feed

0.3.1

2 release files

0.3.0

2 release files

0.2.1

2 release files

This release

0.2.0 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page