(path: Path, data, *, sort_keys: bool = True)
| 35 | |
| 36 | |
| 37 | def save_json(path: Path, data, *, sort_keys: bool = True) -> None: |
| 38 | path.parent.mkdir(parents=True, exist_ok=True) |
| 39 | with path.open("w", encoding="utf-8") as handle: |
| 40 | json.dump(data, handle, ensure_ascii=False, indent=2, sort_keys=sort_keys) |
| 41 | |
| 42 | |
| 43 | def fetch_json(url: str, *, timeout: int = 30, headers: Optional[Dict[str, str]] = None): |
no outgoing calls
no test coverage detected