my-aws-helpers 5.6.0__tar.gz → 5.8.0__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.
Potentially problematic release.
This version of my-aws-helpers might be problematic. Click here for more details.
- {my_aws_helpers-5.6.0 → my_aws_helpers-5.8.0}/PKG-INFO +1 -1
- {my_aws_helpers-5.6.0 → my_aws_helpers-5.8.0}/my_aws_helpers/s3.py +27 -3
- {my_aws_helpers-5.6.0 → my_aws_helpers-5.8.0}/my_aws_helpers.egg-info/PKG-INFO +1 -1
- {my_aws_helpers-5.6.0 → my_aws_helpers-5.8.0}/setup.py +1 -1
- {my_aws_helpers-5.6.0 → my_aws_helpers-5.8.0}/MANIFEST.in +0 -0
- {my_aws_helpers-5.6.0 → my_aws_helpers-5.8.0}/README.md +0 -0
- {my_aws_helpers-5.6.0 → my_aws_helpers-5.8.0}/my_aws_helpers/api.py +0 -0
- {my_aws_helpers-5.6.0 → my_aws_helpers-5.8.0}/my_aws_helpers/auth.py +0 -0
- {my_aws_helpers-5.6.0 → my_aws_helpers-5.8.0}/my_aws_helpers/bedrock.py +0 -0
- {my_aws_helpers-5.6.0 → my_aws_helpers-5.8.0}/my_aws_helpers/cognito.py +0 -0
- {my_aws_helpers-5.6.0 → my_aws_helpers-5.8.0}/my_aws_helpers/dynamo.py +0 -0
- {my_aws_helpers-5.6.0 → my_aws_helpers-5.8.0}/my_aws_helpers/errors.py +0 -0
- {my_aws_helpers-5.6.0 → my_aws_helpers-5.8.0}/my_aws_helpers/event.py +0 -0
- {my_aws_helpers-5.6.0 → my_aws_helpers-5.8.0}/my_aws_helpers/logging.py +0 -0
- {my_aws_helpers-5.6.0 → my_aws_helpers-5.8.0}/my_aws_helpers/prompts/__init__.py +0 -0
- {my_aws_helpers-5.6.0 → my_aws_helpers-5.8.0}/my_aws_helpers/prompts/markdown_system_prompt.txt +0 -0
- {my_aws_helpers-5.6.0 → my_aws_helpers-5.8.0}/my_aws_helpers/prompts/transactions_headers_prompt.txt +0 -0
- {my_aws_helpers-5.6.0 → my_aws_helpers-5.8.0}/my_aws_helpers/prompts/transactions_headers_prompt_v2.txt +0 -0
- {my_aws_helpers-5.6.0 → my_aws_helpers-5.8.0}/my_aws_helpers/prompts/transactions_prompt.txt +0 -0
- {my_aws_helpers-5.6.0 → my_aws_helpers-5.8.0}/my_aws_helpers/sfn.py +0 -0
- {my_aws_helpers-5.6.0 → my_aws_helpers-5.8.0}/my_aws_helpers.egg-info/SOURCES.txt +0 -0
- {my_aws_helpers-5.6.0 → my_aws_helpers-5.8.0}/my_aws_helpers.egg-info/dependency_links.txt +0 -0
- {my_aws_helpers-5.6.0 → my_aws_helpers-5.8.0}/my_aws_helpers.egg-info/requires.txt +0 -0
- {my_aws_helpers-5.6.0 → my_aws_helpers-5.8.0}/my_aws_helpers.egg-info/top_level.txt +0 -0
- {my_aws_helpers-5.6.0 → my_aws_helpers-5.8.0}/my_aws_helpers.egg-info/zip-safe +0 -0
- {my_aws_helpers-5.6.0 → my_aws_helpers-5.8.0}/setup.cfg +0 -0
- {my_aws_helpers-5.6.0 → my_aws_helpers-5.8.0}/tests/test_cognito.py +0 -0
- {my_aws_helpers-5.6.0 → my_aws_helpers-5.8.0}/tests/test_event.py +0 -0
|
@@ -100,11 +100,35 @@ class S3:
|
|
|
100
100
|
)
|
|
101
101
|
|
|
102
102
|
def list_objects_by_prefix(self, bucket_name: str, prefix: str) -> List[S3Location]:
|
|
103
|
+
"""
|
|
104
|
+
list objects by prefix gets 1000 items at a time, if theres more, I want em
|
|
105
|
+
"""
|
|
106
|
+
objects = list()
|
|
103
107
|
try:
|
|
104
|
-
|
|
105
|
-
|
|
108
|
+
continuation_token = None
|
|
109
|
+
while True:
|
|
110
|
+
if continuation_token:
|
|
111
|
+
response = self.client.list_objects_v2(
|
|
112
|
+
Bucket=bucket_name,
|
|
113
|
+
Prefix=prefix,
|
|
114
|
+
ContinuationToken=continuation_token
|
|
115
|
+
)
|
|
116
|
+
else:
|
|
117
|
+
response = self.client.list_objects_v2(
|
|
118
|
+
Bucket=bucket_name,
|
|
119
|
+
Prefix=prefix
|
|
120
|
+
)
|
|
121
|
+
|
|
122
|
+
# Append current batch
|
|
123
|
+
objects.extend(response.get("Contents", []))
|
|
124
|
+
|
|
125
|
+
# Check if more results exist
|
|
126
|
+
if response.get("IsTruncated"): # True if more pages available
|
|
127
|
+
continuation_token = response["NextContinuationToken"]
|
|
128
|
+
else:
|
|
129
|
+
break
|
|
106
130
|
locations = [
|
|
107
|
-
S3Location(bucket=bucket_name, file_name=c["Key"]) for c in
|
|
131
|
+
S3Location(bucket=bucket_name, file_name=c["Key"]) for c in objects
|
|
108
132
|
]
|
|
109
133
|
return locations
|
|
110
134
|
except Exception as e:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{my_aws_helpers-5.6.0 → my_aws_helpers-5.8.0}/my_aws_helpers/prompts/markdown_system_prompt.txt
RENAMED
|
File without changes
|
{my_aws_helpers-5.6.0 → my_aws_helpers-5.8.0}/my_aws_helpers/prompts/transactions_headers_prompt.txt
RENAMED
|
File without changes
|
|
File without changes
|
{my_aws_helpers-5.6.0 → my_aws_helpers-5.8.0}/my_aws_helpers/prompts/transactions_prompt.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|