(base_url: str, workspace_path: str, fmt: str, dest: Path, *, timeout: float)
| 158 | |
| 159 | |
| 160 | def _export_workspace_path(base_url: str, workspace_path: str, fmt: str, dest: Path, *, timeout: float) -> int: |
| 161 | workspace_path = _validate_workspace_path(workspace_path) |
| 162 | export_url = f"{base_url.rstrip('/')}/export/{urllib.parse.quote(fmt)}?{urllib.parse.urlencode({'path': workspace_path})}" |
| 163 | return _download(export_url, dest, timeout=timeout) |
| 164 | |
| 165 | |
| 166 | def _try_health(base_url: str, timeout: float) -> dict[str, Any] | None: |
no test coverage detected