UncountablePythonSDK 0.0.53__py3-none-any.whl → 0.0.54__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 UncountablePythonSDK might be problematic. Click here for more details.
- {UncountablePythonSDK-0.0.53.dist-info → UncountablePythonSDK-0.0.54.dist-info}/METADATA +1 -1
- {UncountablePythonSDK-0.0.53.dist-info → UncountablePythonSDK-0.0.54.dist-info}/RECORD +5 -5
- pkgs/filesystem_utils/_s3_session.py +4 -4
- {UncountablePythonSDK-0.0.53.dist-info → UncountablePythonSDK-0.0.54.dist-info}/WHEEL +0 -0
- {UncountablePythonSDK-0.0.53.dist-info → UncountablePythonSDK-0.0.54.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: UncountablePythonSDK
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.54
|
|
4
4
|
Summary: Uncountable SDK
|
|
5
5
|
Project-URL: Homepage, https://github.com/uncountableinc/uncountable-python-sdk
|
|
6
6
|
Project-URL: Repository, https://github.com/uncountableinc/uncountable-python-sdk.git
|
|
@@ -28,7 +28,7 @@ pkgs/argument_parser/case_convert.py,sha256=NuJLJUJRbyVb6_Slen4uqaStEHbcOS1d-hBB
|
|
|
28
28
|
pkgs/filesystem_utils/__init__.py,sha256=NSsQrUCoGISBCqCCyq6_583sYHTVEQeDjDO8hvZn3ag,1261
|
|
29
29
|
pkgs/filesystem_utils/_gdrive_session.py,sha256=OZudNoP2HikolnpurVJhJdh5fgzqbaZQvn53ReGGXx4,11015
|
|
30
30
|
pkgs/filesystem_utils/_local_session.py,sha256=xFEYhAvNqrOYqwt4jrEYOuYkjJn0zclZhTelW_Q1-rw,2325
|
|
31
|
-
pkgs/filesystem_utils/_s3_session.py,sha256=
|
|
31
|
+
pkgs/filesystem_utils/_s3_session.py,sha256=UbVTUM5olc2Kq_1TX7e5rI3UD5w49ko7CWjsMnSJVmg,3946
|
|
32
32
|
pkgs/filesystem_utils/_sftp_session.py,sha256=gNoUD_b4MuVqWj31nU-FpfpXZlyWkwdEHtX1S8W6gpQ,4727
|
|
33
33
|
pkgs/filesystem_utils/file_type_utils.py,sha256=Xd-mg35mAENUgNJVz5uK8nEfrUp-NQld_gnXFEq3K-8,1487
|
|
34
34
|
pkgs/filesystem_utils/filesystem_session.py,sha256=BQ2Go8Mu9-GcnaWh2Pm4x7ugLVsres6XrOQ8RoiEpcE,1045
|
|
@@ -242,7 +242,7 @@ uncountable/types/api/triggers/__init__.py,sha256=gCgbynxG3jA8FQHzercKtrHKHkiIKr
|
|
|
242
242
|
uncountable/types/api/triggers/run_trigger.py,sha256=_Rpha9nxXI3Xr17CrGDtofg4HZ81x2lt0rMZ6As0qfE,893
|
|
243
243
|
uncountable/types/api/uploader/__init__.py,sha256=gCgbynxG3jA8FQHzercKtrHKHkiIKr8APdZYUniAor8,55
|
|
244
244
|
uncountable/types/api/uploader/invoke_uploader.py,sha256=4zOcB_38uT73Jm3-XqkG40fBM1R5vpvPpGAg-U4lzxY,1059
|
|
245
|
-
UncountablePythonSDK-0.0.
|
|
246
|
-
UncountablePythonSDK-0.0.
|
|
247
|
-
UncountablePythonSDK-0.0.
|
|
248
|
-
UncountablePythonSDK-0.0.
|
|
245
|
+
UncountablePythonSDK-0.0.54.dist-info/METADATA,sha256=PzDsbl724f6w2EAH-tAuiai1I0Mn-SDqVt1ux1xSur0,1934
|
|
246
|
+
UncountablePythonSDK-0.0.54.dist-info/WHEEL,sha256=Mdi9PDNwEZptOjTlUcAth7XJDFtKrHYaQMPulZeBCiQ,91
|
|
247
|
+
UncountablePythonSDK-0.0.54.dist-info/top_level.txt,sha256=1UVGjAU-6hJY9qw2iJ7nCBeEwZ793AEN5ZfKX9A1uj4,31
|
|
248
|
+
UncountablePythonSDK-0.0.54.dist-info/RECORD,,
|
|
@@ -53,16 +53,16 @@ class S3Session(FileSystemSession):
|
|
|
53
53
|
recursive: bool = False,
|
|
54
54
|
valid_extensions: list[str] | None = None,
|
|
55
55
|
) -> list[FileSystemObject]:
|
|
56
|
-
if recursive:
|
|
57
|
-
raise NotImplementedError("recursive file listings not implemented for s3")
|
|
58
|
-
|
|
59
56
|
if not isinstance(dir_path, FileSystemFileReference):
|
|
60
57
|
raise IncompatibleFileReference()
|
|
61
58
|
|
|
62
59
|
assert self.bucket is not None, "call to list_files on uninitialized s3 session"
|
|
63
60
|
|
|
64
61
|
filesystem_references: list[FileSystemObject] = []
|
|
65
|
-
|
|
62
|
+
prefix = _add_slash(dir_path.filepath)
|
|
63
|
+
for obj in self.bucket.objects.filter(Prefix=prefix):
|
|
64
|
+
if not recursive and (obj.key == prefix or "/" in obj.key[len(prefix) :]):
|
|
65
|
+
continue
|
|
66
66
|
if valid_extensions is None or any(
|
|
67
67
|
obj.key.endswith(valid_extension) for valid_extension in valid_extensions
|
|
68
68
|
):
|
|
File without changes
|
{UncountablePythonSDK-0.0.53.dist-info → UncountablePythonSDK-0.0.54.dist-info}/top_level.txt
RENAMED
|
File without changes
|