← Về thư mục
skills/hugging-science/scripts/fetch_catalog.py
- Entry · class · L69-L93 — class Entry
- matches_filter · method · L79-L93 — def matches_filter(self, kind: str | None, tag: str | None) -> bool
- fetch · function · L96-L104 — def fetch(url: str) -> str
- parse_markdown · function · L107-L163 — def parse_markdown(md: str) -> list[Entry]
- finalize · function · L118-L122 — def finalize(e: Entry | None, desc: list[str]) -> None
- _host_is_expected · function · L184-L190 — def _host_is_expected(host: str) -> bool: # Exact host or a real subdomain -- "evil-huggingface.co" must not pass by # suffix match alone.
- _defang · function · L193-L203 — def _defang(text: str) -> str
- render_entry · function · L206-L223 — def render_entry(e: Entry) -> str
- render_entries · function · L226-L242 — def render_entries(entries: Iterable[Entry], group_by_section: bool = True) -> str
- cmd_topics · function · L245-L252 — def cmd_topics(_: argparse.Namespace) -> None
- cmd_topic · function · L255-L265 — def cmd_topic(args: argparse.Namespace) -> None
- cmd_all · function · L268-L280 — def cmd_all(args: argparse.Namespace) -> None
- cmd_search · function · L283-L301 — def cmd_search(args: argparse.Namespace) -> None
- cmd_raw · function · L304-L318 — def cmd_raw(args: argparse.Namespace) -> None
- main · function · L321-L354 — def main() -> None