Commit f26749b 1 parent 7e92dc7 commit f26749b Copy full SHA for f26749b
File tree 2 files changed +4
-7
lines changed
2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,6 @@ name: PR
2
2
3
3
on :
4
4
pull_request :
5
- paths :
6
- - poetry.lock
7
- - pyproject.yaml
8
- - " truss/**"
9
- - " docs/**"
10
- - .github/workflows/pr.yml
11
5
12
6
concurrency :
13
7
group : pr-${{ github.ref_name }}
Original file line number Diff line number Diff line change 1
- import boto3
2
1
from io import BytesIO
3
2
3
+ import boto3
4
+
4
5
s3 = boto3 .client ("s3" )
5
6
7
+
6
8
def get_byte_stream_for_s3_path (s3_path : str ) -> BytesIO :
7
9
"""
8
10
Load data directly into memory from S3 and return a byte stream.
@@ -17,6 +19,7 @@ def get_byte_stream_for_s3_path(s3_path: str) -> BytesIO:
17
19
s3_object = s3 .get_object (Bucket = bucket_name , Key = s3_key )
18
20
return BytesIO (s3_object ["Body" ].read ())
19
21
22
+
20
23
def download_from_s3 (s3_path : str , local_path : str ) -> None :
21
24
"""
22
25
Download a file from S3 to a specified local path.
You can’t perform that action at this time.
0 commit comments