From 79fa46d97c5cde8540fe6b8c4358e880b4f782af Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Wed, 8 Jul 2026 09:42:37 +0000 Subject: [PATCH] =?UTF-8?q?Read=20document=20bytes=20from=20an=20arbitrary?= =?UTF-8?q?=20source=20bucket=20=F0=9F=9F=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 --- infrastructure/s3/s3_document_bytes_reader.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/infrastructure/s3/s3_document_bytes_reader.py b/infrastructure/s3/s3_document_bytes_reader.py index 930377740..2e0739249 100644 --- a/infrastructure/s3/s3_document_bytes_reader.py +++ b/infrastructure/s3/s3_document_bytes_reader.py @@ -16,4 +16,6 @@ class S3DocumentBytesReader: self._client = boto_s3_client def read(self, bucket: str, key: str) -> bytes: - raise NotImplementedError + response: dict[str, Any] = self._client.get_object(Bucket=bucket, Key=key) + body: bytes = response["Body"].read() + return body