The definitive list of the best of (consumer facing) open source.
try:
from .github_utils import (
build_graphql_repos_query,
extract_repo_path,
fetch_repo_data,
fetch_repo_summary,
fetch_repos_batch,
fetch_repos_batch_graphql,
fetch_repos_batch_rest,
format_commit_date,
format_time_ago,
get_github_headers,
get_github_token,
normalize_graphql_repo,
)
except (ImportError, ModuleNotFoundError):
pass
from .markdown_utils import (
format_stars,
sanitize_table_cell,
slugify,
)
from .path_utils import (
COMPONENTS_DIR,
CORE_DIR,
DATA_DIR,
DYNAMIC_DATA_DIR,
MAINTENANCE_DIR,
READMES_DIR,
REPO_ROOT,
STATIC_DATA_DIR,
UTILS_DIR,
)
__all__ = [
"extract_repo_path",
"fetch_repo_data",
"fetch_repo_summary",
"fetch_repos_batch",
"fetch_repos_batch_graphql",
"fetch_repos_batch_rest",
"build_graphql_repos_query",
"normalize_graphql_repo",
"format_commit_date",
"format_time_ago",
"get_github_headers",
"get_github_token",
"format_stars",
"sanitize_table_cell",
"slugify",
"UTILS_DIR",
"CORE_DIR",
"REPO_ROOT",
"DATA_DIR",
"STATIC_DATA_DIR",
"DYNAMIC_DATA_DIR",
"COMPONENTS_DIR",
"READMES_DIR",
"MAINTENANCE_DIR",
]