airbyte-source-s3 4.14.4__py3-none-any.whl → 4.14.5.dev202510081800__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of airbyte-source-s3 might be problematic. Click here for more details.
- {airbyte_source_s3-4.14.4.dist-info → airbyte_source_s3-4.14.5.dev202510081800.dist-info}/METADATA +2 -2
- {airbyte_source_s3-4.14.4.dist-info → airbyte_source_s3-4.14.5.dev202510081800.dist-info}/RECORD +5 -5
- source_s3/v4/zip_reader.py +15 -1
- {airbyte_source_s3-4.14.4.dist-info → airbyte_source_s3-4.14.5.dev202510081800.dist-info}/WHEEL +0 -0
- {airbyte_source_s3-4.14.4.dist-info → airbyte_source_s3-4.14.5.dev202510081800.dist-info}/entry_points.txt +0 -0
{airbyte_source_s3-4.14.4.dist-info → airbyte_source_s3-4.14.5.dev202510081800.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: airbyte-source-s3
|
|
3
|
-
Version: 4.14.
|
|
3
|
+
Version: 4.14.5.dev202510081800
|
|
4
4
|
Summary: Source implementation for S3.
|
|
5
5
|
Home-page: https://airbyte.com
|
|
6
6
|
License: ELv2
|
|
@@ -15,7 +15,7 @@ Requires-Dist: airbyte-cdk[file-based] (>=7.0.4,<8.0.0)
|
|
|
15
15
|
Requires-Dist: dill (>=0.3.4,<0.4.0)
|
|
16
16
|
Requires-Dist: pendulum (>=3.0.0,<4.0.0)
|
|
17
17
|
Requires-Dist: pytz (>=2024.2,<2025.0)
|
|
18
|
-
Requires-Dist: smart-open[s3] (==4.14.
|
|
18
|
+
Requires-Dist: smart-open[s3] (==4.14.5.dev.202510081800)
|
|
19
19
|
Requires-Dist: transformers (>=4.38.2,<5.0.0)
|
|
20
20
|
Requires-Dist: urllib3 (<2)
|
|
21
21
|
Requires-Dist: wcmatch (>=10.0,<11.0)
|
{airbyte_source_s3-4.14.4.dist-info → airbyte_source_s3-4.14.5.dev202510081800.dist-info}/RECORD
RENAMED
|
@@ -18,8 +18,8 @@ source_s3/v4/cursor.py,sha256=kZj_6Wtl2yVAVeKZW67XyYQOk2XtbYazTgswEgGfKnI,7298
|
|
|
18
18
|
source_s3/v4/legacy_config_transformer.py,sha256=OjKwGBYPHZvhZRKGO1LOAR7-cAT-9KvDRQY-G93eoic,7840
|
|
19
19
|
source_s3/v4/source.py,sha256=jugIY53C_G9QhQRwKWBPcXXUgYKF_RESSaewzF_HXhc,8967
|
|
20
20
|
source_s3/v4/stream_reader.py,sha256=7AhFnOkkynZpAec3SD6c9pT-sCS7eeH8oKpDpgz8sCA,16837
|
|
21
|
-
source_s3/v4/zip_reader.py,sha256=
|
|
22
|
-
airbyte_source_s3-4.14.
|
|
23
|
-
airbyte_source_s3-4.14.
|
|
24
|
-
airbyte_source_s3-4.14.
|
|
25
|
-
airbyte_source_s3-4.14.
|
|
21
|
+
source_s3/v4/zip_reader.py,sha256=GFDnqv1tYxiSpVmMUObYX55xXiZ0MNrirbfH83gTFdw,15390
|
|
22
|
+
airbyte_source_s3-4.14.5.dev202510081800.dist-info/METADATA,sha256=djWQoFbhRHT_M3k76MXtUK8vfe7_dZLyek64qx2-soQ,5398
|
|
23
|
+
airbyte_source_s3-4.14.5.dev202510081800.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
24
|
+
airbyte_source_s3-4.14.5.dev202510081800.dist-info/entry_points.txt,sha256=1ndXy1aXftjfCR82yLKg797X8-O5mD95tz6rNKA_1dE,47
|
|
25
|
+
airbyte_source_s3-4.14.5.dev202510081800.dist-info/RECORD,,
|
source_s3/v4/zip_reader.py
CHANGED
|
@@ -366,7 +366,21 @@ class ZipContentReader:
|
|
|
366
366
|
data = self.buffer[:size]
|
|
367
367
|
self.buffer = self.buffer[size:]
|
|
368
368
|
|
|
369
|
-
|
|
369
|
+
try:
|
|
370
|
+
return data.decode(self.encoding) if self.encoding else bytes(data)
|
|
371
|
+
except UnicodeDecodeError:
|
|
372
|
+
if self.encoding == "utf_8_sig":
|
|
373
|
+
# utf_8_sig considers `\xef\xbb\xbf` as a single character and therefore calling `bytearray(b'\xef').decode("utf_8_sig") will
|
|
374
|
+
# cause an exception to be raised.
|
|
375
|
+
number_of_bytes_to_add = size - 1
|
|
376
|
+
if data.endswith(bytearray(b"\xef")):
|
|
377
|
+
number_of_bytes_to_add += 2
|
|
378
|
+
elif data.endswith(bytearray(b"\xbb")):
|
|
379
|
+
number_of_bytes_to_add += 1
|
|
380
|
+
data = data + self.buffer[:number_of_bytes_to_add]
|
|
381
|
+
self.buffer = self.buffer[number_of_bytes_to_add:]
|
|
382
|
+
return data.decode(self.encoding) if self.encoding else bytes(data)
|
|
383
|
+
raise
|
|
370
384
|
|
|
371
385
|
def seek(self, offset: int, whence: int = io.SEEK_SET) -> int:
|
|
372
386
|
"""
|
{airbyte_source_s3-4.14.4.dist-info → airbyte_source_s3-4.14.5.dev202510081800.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|