---------------------------------------------------------------------- This is the API documentation for the gdtest_skill_config library. ---------------------------------------------------------------------- ## Classes Core classes Stream(source: str, chunk_size: int = 1024, timeout: float | None = None) A lazy stream reader. Parameters ---------- source A file path or file-like object. chunk_size Read chunk size in bytes. timeout Read timeout in seconds. Sink(dest: str, buffer_size: int = 4096) A buffered output sink. Parameters ---------- dest Destination file path or file-like object. buffer_size Write buffer size in bytes. ## Stream Methods Methods for the Stream class __enter__(self) __exit__(self, *args) read(self, n: int = -1) -> bytes Read up to n bytes. Parameters ---------- n Number of bytes. -1 for all remaining. Returns ------- bytes The data read. close(self) -> None Close the stream and release resources. map(self, fn) -> 'Stream' Apply a function to each element. Parameters ---------- fn Callable to apply. Returns ------- Stream A new transformed stream. filter(self, predicate) -> 'Stream' Filter elements by a predicate. Parameters ---------- predicate Callable returning bool. Returns ------- Stream A new filtered stream. ## Functions Public functions batch(iterable, size: int = 10) Yield items from an iterable in fixed-size batches. Parameters ---------- iterable Input iterable. size Batch size. Yields ------ list A batch of items.