pyaws-s3 1.0.16__tar.gz → 1.0.18__tar.gz
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.
- {pyaws_s3-1.0.16 → pyaws_s3-1.0.18}/PKG-INFO +3 -3
- {pyaws_s3-1.0.16 → pyaws_s3-1.0.18}/pyaws_s3/s3.py +11 -3
- {pyaws_s3-1.0.16 → pyaws_s3-1.0.18}/pyaws_s3.egg-info/PKG-INFO +3 -3
- {pyaws_s3-1.0.16 → pyaws_s3-1.0.18}/pyproject.toml +3 -3
- {pyaws_s3-1.0.16 → pyaws_s3-1.0.18}/LICENSE.md +0 -0
- {pyaws_s3-1.0.16 → pyaws_s3-1.0.18}/README.md +0 -0
- {pyaws_s3-1.0.16 → pyaws_s3-1.0.18}/pyaws_s3/__init__.py +0 -0
- {pyaws_s3-1.0.16 → pyaws_s3-1.0.18}/pyaws_s3.egg-info/SOURCES.txt +0 -0
- {pyaws_s3-1.0.16 → pyaws_s3-1.0.18}/pyaws_s3.egg-info/dependency_links.txt +0 -0
- {pyaws_s3-1.0.16 → pyaws_s3-1.0.18}/pyaws_s3.egg-info/requires.txt +0 -0
- {pyaws_s3-1.0.16 → pyaws_s3-1.0.18}/pyaws_s3.egg-info/top_level.txt +0 -0
- {pyaws_s3-1.0.16 → pyaws_s3-1.0.18}/setup.cfg +0 -0
@@ -1,12 +1,12 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
|
-
Name:
|
3
|
-
Version: 1.0.
|
2
|
+
Name: pyaws-s3
|
3
|
+
Version: 1.0.18
|
4
4
|
Summary: A Python package for AWS S3 utilities
|
5
5
|
Author-email: Giuseppe Zileni <giuseppe.zileni@gmail.com>
|
6
6
|
Keywords: aws,s3,utilities
|
7
7
|
Classifier: Programming Language :: Python :: 3
|
8
8
|
Classifier: Operating System :: OS Independent
|
9
|
-
Requires-Python: >=3.
|
9
|
+
Requires-Python: >=3.9
|
10
10
|
Description-Content-Type: text/markdown
|
11
11
|
License-File: LICENSE.md
|
12
12
|
Requires-Dist: aioboto3==14.3.0
|
@@ -495,10 +495,18 @@ class S3Client:
|
|
495
495
|
objects = s3_client.list_objects_v2(Bucket=self.bucket_name, Prefix=prefix)
|
496
496
|
|
497
497
|
# Check if the bucket contains any objects
|
498
|
+
docs : list[str] = []
|
498
499
|
if 'Contents' in objects:
|
499
|
-
|
500
|
-
|
501
|
-
|
500
|
+
for obj in objects['Contents']:
|
501
|
+
if obj['Key']:
|
502
|
+
# Log the object key
|
503
|
+
if filter is not None:
|
504
|
+
if filter in obj['Key']:
|
505
|
+
logger.info(f"Object: {obj['Key']}")
|
506
|
+
docs.append(obj['Key'])
|
507
|
+
else:
|
508
|
+
docs.append(obj['Key'])
|
509
|
+
return docs
|
502
510
|
except Exception as e:
|
503
511
|
logger.error(f"Error listing files: {str(e)}")
|
504
512
|
raise Exception(f"Error listing files: {str(e)}")
|
@@ -1,12 +1,12 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
|
-
Name:
|
3
|
-
Version: 1.0.
|
2
|
+
Name: pyaws-s3
|
3
|
+
Version: 1.0.18
|
4
4
|
Summary: A Python package for AWS S3 utilities
|
5
5
|
Author-email: Giuseppe Zileni <giuseppe.zileni@gmail.com>
|
6
6
|
Keywords: aws,s3,utilities
|
7
7
|
Classifier: Programming Language :: Python :: 3
|
8
8
|
Classifier: Operating System :: OS Independent
|
9
|
-
Requires-Python: >=3.
|
9
|
+
Requires-Python: >=3.9
|
10
10
|
Description-Content-Type: text/markdown
|
11
11
|
License-File: LICENSE.md
|
12
12
|
Requires-Dist: aioboto3==14.3.0
|
@@ -3,14 +3,14 @@ requires = ["setuptools >= 77.0.3"]
|
|
3
3
|
build-backend = "setuptools.build_meta"
|
4
4
|
|
5
5
|
[project]
|
6
|
-
name = "
|
7
|
-
version = "1.0.
|
6
|
+
name = "pyaws-s3"
|
7
|
+
version = "1.0.18"
|
8
8
|
description = "A Python package for AWS S3 utilities"
|
9
9
|
authors = [
|
10
10
|
{ name="Giuseppe Zileni", email="giuseppe.zileni@gmail.com" }
|
11
11
|
]
|
12
12
|
readme = {file = "README.md", content-type = "text/markdown"}
|
13
|
-
requires-python = ">=3.
|
13
|
+
requires-python = ">=3.9"
|
14
14
|
license-files = ["LICENSE.md"]
|
15
15
|
keywords = ["aws", "s3", "utilities"]
|
16
16
|
classifiers = ['Programming Language :: Python :: 3', 'Operating System :: OS Independent']
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|