my-aws-helpers 5.8.0__tar.gz → 5.9.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.8.0 → my_aws_helpers-5.9.0}/PKG-INFO +1 -1
- {my_aws_helpers-5.8.0 → my_aws_helpers-5.9.0}/my_aws_helpers/s3.py +18 -0
- {my_aws_helpers-5.8.0 → my_aws_helpers-5.9.0}/my_aws_helpers.egg-info/PKG-INFO +1 -1
- {my_aws_helpers-5.8.0 → my_aws_helpers-5.9.0}/setup.py +1 -1
- {my_aws_helpers-5.8.0 → my_aws_helpers-5.9.0}/MANIFEST.in +0 -0
- {my_aws_helpers-5.8.0 → my_aws_helpers-5.9.0}/README.md +0 -0
- {my_aws_helpers-5.8.0 → my_aws_helpers-5.9.0}/my_aws_helpers/api.py +0 -0
- {my_aws_helpers-5.8.0 → my_aws_helpers-5.9.0}/my_aws_helpers/auth.py +0 -0
- {my_aws_helpers-5.8.0 → my_aws_helpers-5.9.0}/my_aws_helpers/bedrock.py +0 -0
- {my_aws_helpers-5.8.0 → my_aws_helpers-5.9.0}/my_aws_helpers/cognito.py +0 -0
- {my_aws_helpers-5.8.0 → my_aws_helpers-5.9.0}/my_aws_helpers/dynamo.py +0 -0
- {my_aws_helpers-5.8.0 → my_aws_helpers-5.9.0}/my_aws_helpers/errors.py +0 -0
- {my_aws_helpers-5.8.0 → my_aws_helpers-5.9.0}/my_aws_helpers/event.py +0 -0
- {my_aws_helpers-5.8.0 → my_aws_helpers-5.9.0}/my_aws_helpers/logging.py +0 -0
- {my_aws_helpers-5.8.0 → my_aws_helpers-5.9.0}/my_aws_helpers/prompts/__init__.py +0 -0
- {my_aws_helpers-5.8.0 → my_aws_helpers-5.9.0}/my_aws_helpers/prompts/markdown_system_prompt.txt +0 -0
- {my_aws_helpers-5.8.0 → my_aws_helpers-5.9.0}/my_aws_helpers/prompts/transactions_headers_prompt.txt +0 -0
- {my_aws_helpers-5.8.0 → my_aws_helpers-5.9.0}/my_aws_helpers/prompts/transactions_headers_prompt_v2.txt +0 -0
- {my_aws_helpers-5.8.0 → my_aws_helpers-5.9.0}/my_aws_helpers/prompts/transactions_prompt.txt +0 -0
- {my_aws_helpers-5.8.0 → my_aws_helpers-5.9.0}/my_aws_helpers/sfn.py +0 -0
- {my_aws_helpers-5.8.0 → my_aws_helpers-5.9.0}/my_aws_helpers.egg-info/SOURCES.txt +0 -0
- {my_aws_helpers-5.8.0 → my_aws_helpers-5.9.0}/my_aws_helpers.egg-info/dependency_links.txt +0 -0
- {my_aws_helpers-5.8.0 → my_aws_helpers-5.9.0}/my_aws_helpers.egg-info/requires.txt +0 -0
- {my_aws_helpers-5.8.0 → my_aws_helpers-5.9.0}/my_aws_helpers.egg-info/top_level.txt +0 -0
- {my_aws_helpers-5.8.0 → my_aws_helpers-5.9.0}/my_aws_helpers.egg-info/zip-safe +0 -0
- {my_aws_helpers-5.8.0 → my_aws_helpers-5.9.0}/setup.cfg +0 -0
- {my_aws_helpers-5.8.0 → my_aws_helpers-5.9.0}/tests/test_cognito.py +0 -0
- {my_aws_helpers-5.8.0 → my_aws_helpers-5.9.0}/tests/test_event.py +0 -0
|
@@ -2,6 +2,7 @@ from __future__ import annotations
|
|
|
2
2
|
import boto3
|
|
3
3
|
import io
|
|
4
4
|
import json
|
|
5
|
+
from concurrent.futures import Future, ThreadPoolExecutor
|
|
5
6
|
from abc import ABC, abstractmethod
|
|
6
7
|
from typing import Optional, Any, Dict, List
|
|
7
8
|
from datetime import datetime, date
|
|
@@ -320,6 +321,23 @@ class BaseS3Queries:
|
|
|
320
321
|
self.s3_client = s3_client
|
|
321
322
|
self.bucket_name = bucket_name
|
|
322
323
|
|
|
324
|
+
def _concurrent_s3_dict_read(
|
|
325
|
+
self, locations: List[S3Location], max_workers: int = 10
|
|
326
|
+
) -> List[BaseS3Object]:
|
|
327
|
+
results: List[BaseS3Object] = list()
|
|
328
|
+
futures: List[Future] = list()
|
|
329
|
+
with ThreadPoolExecutor(max_workers=max_workers) as executor:
|
|
330
|
+
for location in locations:
|
|
331
|
+
future = executor.submit(
|
|
332
|
+
self.s3_client.read_dict_from_s3,
|
|
333
|
+
s3_location=location,
|
|
334
|
+
)
|
|
335
|
+
futures.append(future)
|
|
336
|
+
for f in futures:
|
|
337
|
+
results.append(f.result())
|
|
338
|
+
results = [r for r in results if r is not None]
|
|
339
|
+
return results
|
|
340
|
+
|
|
323
341
|
def save_s3_object_to_s3(self, object: BaseS3Object) -> Optional[S3Location]:
|
|
324
342
|
try:
|
|
325
343
|
obj = object.to_s3_representation()
|
|
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.8.0 → my_aws_helpers-5.9.0}/my_aws_helpers/prompts/markdown_system_prompt.txt
RENAMED
|
File without changes
|
{my_aws_helpers-5.8.0 → my_aws_helpers-5.9.0}/my_aws_helpers/prompts/transactions_headers_prompt.txt
RENAMED
|
File without changes
|
|
File without changes
|
{my_aws_helpers-5.8.0 → my_aws_helpers-5.9.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
|