my-aws-helpers 6.0.4__tar.gz → 6.0.5__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.
Files changed (28) hide show
  1. {my_aws_helpers-6.0.4 → my_aws_helpers-6.0.5}/PKG-INFO +1 -1
  2. {my_aws_helpers-6.0.4 → my_aws_helpers-6.0.5}/my_aws_helpers/s3.py +20 -0
  3. {my_aws_helpers-6.0.4 → my_aws_helpers-6.0.5}/my_aws_helpers.egg-info/PKG-INFO +1 -1
  4. {my_aws_helpers-6.0.4 → my_aws_helpers-6.0.5}/setup.py +1 -1
  5. {my_aws_helpers-6.0.4 → my_aws_helpers-6.0.5}/MANIFEST.in +0 -0
  6. {my_aws_helpers-6.0.4 → my_aws_helpers-6.0.5}/README.md +0 -0
  7. {my_aws_helpers-6.0.4 → my_aws_helpers-6.0.5}/my_aws_helpers/api.py +0 -0
  8. {my_aws_helpers-6.0.4 → my_aws_helpers-6.0.5}/my_aws_helpers/auth.py +0 -0
  9. {my_aws_helpers-6.0.4 → my_aws_helpers-6.0.5}/my_aws_helpers/bedrock.py +0 -0
  10. {my_aws_helpers-6.0.4 → my_aws_helpers-6.0.5}/my_aws_helpers/cognito.py +0 -0
  11. {my_aws_helpers-6.0.4 → my_aws_helpers-6.0.5}/my_aws_helpers/dynamo.py +0 -0
  12. {my_aws_helpers-6.0.4 → my_aws_helpers-6.0.5}/my_aws_helpers/errors.py +0 -0
  13. {my_aws_helpers-6.0.4 → my_aws_helpers-6.0.5}/my_aws_helpers/event.py +0 -0
  14. {my_aws_helpers-6.0.4 → my_aws_helpers-6.0.5}/my_aws_helpers/logging.py +0 -0
  15. {my_aws_helpers-6.0.4 → my_aws_helpers-6.0.5}/my_aws_helpers/prompts/__init__.py +0 -0
  16. {my_aws_helpers-6.0.4 → my_aws_helpers-6.0.5}/my_aws_helpers/prompts/markdown_system_prompt.txt +0 -0
  17. {my_aws_helpers-6.0.4 → my_aws_helpers-6.0.5}/my_aws_helpers/prompts/transactions_headers_prompt.txt +0 -0
  18. {my_aws_helpers-6.0.4 → my_aws_helpers-6.0.5}/my_aws_helpers/prompts/transactions_headers_prompt_v2.txt +0 -0
  19. {my_aws_helpers-6.0.4 → my_aws_helpers-6.0.5}/my_aws_helpers/prompts/transactions_prompt.txt +0 -0
  20. {my_aws_helpers-6.0.4 → my_aws_helpers-6.0.5}/my_aws_helpers/sfn.py +0 -0
  21. {my_aws_helpers-6.0.4 → my_aws_helpers-6.0.5}/my_aws_helpers.egg-info/SOURCES.txt +0 -0
  22. {my_aws_helpers-6.0.4 → my_aws_helpers-6.0.5}/my_aws_helpers.egg-info/dependency_links.txt +0 -0
  23. {my_aws_helpers-6.0.4 → my_aws_helpers-6.0.5}/my_aws_helpers.egg-info/requires.txt +0 -0
  24. {my_aws_helpers-6.0.4 → my_aws_helpers-6.0.5}/my_aws_helpers.egg-info/top_level.txt +0 -0
  25. {my_aws_helpers-6.0.4 → my_aws_helpers-6.0.5}/my_aws_helpers.egg-info/zip-safe +0 -0
  26. {my_aws_helpers-6.0.4 → my_aws_helpers-6.0.5}/setup.cfg +0 -0
  27. {my_aws_helpers-6.0.4 → my_aws_helpers-6.0.5}/tests/test_cognito.py +0 -0
  28. {my_aws_helpers-6.0.4 → my_aws_helpers-6.0.5}/tests/test_event.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: my_aws_helpers
3
- Version: 6.0.4
3
+ Version: 6.0.5
4
4
  Summary: AWS Helpers
5
5
  Home-page: https://github.com/JarrodMccarthy/aws_helpers.git
6
6
  Author: Jarrod McCarthy
@@ -22,6 +22,26 @@ class ContentType(str, Enum):
22
22
  json_content = "application/json"
23
23
  pdf_content = "application/pdf"
24
24
  jpeg_content = "image/jpeg"
25
+ png_content = "image/png"
26
+
27
+
28
+ @staticmethod
29
+ def get_content_type_from_file_name(file_name: str) -> Optional[ContentType]:
30
+ file_extension = file_name.split('.')[-1]
31
+ if file_extension == "xml":
32
+ return ContentType.xml_content
33
+ if file_extension == "txt":
34
+ return ContentType.plain_text
35
+ if file_extension == "json":
36
+ return ContentType.json_content
37
+ if file_extension == "pdf":
38
+ return ContentType.pdf_content
39
+ if file_extension == "jpg":
40
+ return ContentType.jpeg_content
41
+ if file_extension == "png":
42
+ return ContentType.png_content
43
+ return None
44
+
25
45
 
26
46
 
27
47
  class ContentEncoding(str, Enum):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: my-aws-helpers
3
- Version: 6.0.4
3
+ Version: 6.0.5
4
4
  Summary: AWS Helpers
5
5
  Home-page: https://github.com/JarrodMccarthy/aws_helpers.git
6
6
  Author: Jarrod McCarthy
@@ -3,7 +3,7 @@ from setuptools import find_namespace_packages, setup
3
3
 
4
4
  base_path = os.path.abspath(os.path.dirname(__file__))
5
5
 
6
- version = "6.0.4"
6
+ version = "6.0.5"
7
7
 
8
8
  core = [
9
9
  "boto3",
File without changes
File without changes