MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / _download_binary

Function _download_binary

graphify/ingest.py:270–271  ·  view source on GitHub ↗
(url: str, suffix: str, target_dir: Path)

Source from the content-addressed store, hash-verified

268
269
270def _download_binary(url: str, suffix: str, target_dir: Path) -> Path:
271 return _write_capture(target_dir, _safe_filename(url, suffix), lambda: safe_fetch(url))
272
273
274def ingest(url: str, target_dir: Path, author: str | None = None, contributor: str | None = None) -> Path:

Callers 1

ingestFunction · 0.85

Calls 3

safe_fetchFunction · 0.90
_write_captureFunction · 0.85
_safe_filenameFunction · 0.70

Tested by

no test coverage detected