io
- async bedrock_server_manager.utils.io.save_json(data: Any, filepath: str, indent: int = 4) None
Non-blocking asynchronous entry point to save data to a JSON file safely.
- async bedrock_server_manager.utils.io.load_json(filepath: str) Any
Non-blocking asynchronous entry point to read and parse a JSON file safely.
- async bedrock_server_manager.utils.io.save_lines(lines: List[str], filepath: str) None
Non-blocking asynchronous entry point to save lines of text to a file safely.
- async bedrock_server_manager.utils.io.load_lines(filepath: str) List[str]
Non-blocking asynchronous entry point to read lines from a file safely.
- bedrock_server_manager.utils.io.temporary_directory(parent: str | Path | None = None, *, prefix: str = 'bsm-') AsyncIterator[Path]
Cancellation-owned temporary directories without event-loop filesystem work.