Download plugins/google_meet/_jsonfile.py from SaylorTwift/hermes-agent: direct link, hf CLI and curl.
- Browser
- Download file 496 Bytes
-
https://huggingface.co/SaylorTwift/hermes-agent/resolve/main/plugins/google_meet/_jsonfile.py
- Command line
-
hf download hf://SaylorTwift/hermes-agent/plugins/google_meet/_jsonfile.py
-
curl -L -o _jsonfile.py https://huggingface.co/SaylorTwift/hermes-agent/resolve/main/plugins/google_meet/_jsonfile.py
496 Bytes
| """Tiny JSON read helper shared by the bot, process manager, node registry and node server.""" | |
| from __future__ import annotations | |
| import json | |
| from pathlib import Path | |
| from typing import Any, Optional | |
| def read_json(path: Path) -> Optional[Any]: | |
| """Parsed JSON from *path*, or None when missing/unreadable/malformed.""" | |
| if not path.is_file(): | |
| return None | |
| try: | |
| return json.loads(path.read_text(encoding="utf-8")) | |
| except (OSError, ValueError): | |
| return None | |