lib/utils/__init__.py

41 lines · 959 bytes

 1"""Shared helpers for lib/ scripts. Re-exports the public API of each submodule."""
 2
 3from .data import DATA_PATH, PROJECT_ROOT, iter_services, load_yaml, slugify
 4from .github import (
 5    AI_BOT_AUTHORS,
 6    commit_has_bot,
 7    fetch_repo,
 8    gh_get,
 9    parse_github_field,
10    repo_age_days,
11    repo_has_license,
12    repo_is_archived,
13    repo_is_fork,
14    repo_pushed_days_ago,
15)
16from .http import DEFAULT_TIMEOUT, DEFAULT_USER_AGENT, check_url, make_session
17from .term import make_colors, setup_logging
18
19__all__ = [
20    "AI_BOT_AUTHORS",
21    "DATA_PATH",
22    "DEFAULT_TIMEOUT",
23    "DEFAULT_USER_AGENT",
24    "PROJECT_ROOT",
25    "check_url",
26    "commit_has_bot",
27    "fetch_repo",
28    "gh_get",
29    "iter_services",
30    "load_yaml",
31    "make_colors",
32    "make_session",
33    "parse_github_field",
34    "repo_age_days",
35    "repo_has_license",
36    "repo_is_archived",
37    "repo_is_fork",
38    "repo_pushed_days_ago",
39    "setup_logging",
40    "slugify",
41]