boto3 1.37.4__py3-none-any.whl → 1.37.6__py3-none-any.whl
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.
- boto3/__init__.py +1 -1
- boto3/s3/inject.py +29 -0
- {boto3-1.37.4.dist-info → boto3-1.37.6.dist-info}/METADATA +2 -2
- {boto3-1.37.4.dist-info → boto3-1.37.6.dist-info}/RECORD +8 -8
- {boto3-1.37.4.dist-info → boto3-1.37.6.dist-info}/LICENSE +0 -0
- {boto3-1.37.4.dist-info → boto3-1.37.6.dist-info}/NOTICE +0 -0
- {boto3-1.37.4.dist-info → boto3-1.37.6.dist-info}/WHEEL +0 -0
- {boto3-1.37.4.dist-info → boto3-1.37.6.dist-info}/top_level.txt +0 -0
boto3/__init__.py
CHANGED
boto3/s3/inject.py
CHANGED
@@ -11,6 +11,7 @@
|
|
11
11
|
# ANY KIND, either express or implied. See the License for the specific
|
12
12
|
# language governing permissions and limitations under the License.
|
13
13
|
import copy as python_copy
|
14
|
+
from functools import partial
|
14
15
|
|
15
16
|
from botocore.exceptions import ClientError
|
16
17
|
|
@@ -22,6 +23,29 @@ from boto3.s3.transfer import (
|
|
22
23
|
create_transfer_manager,
|
23
24
|
)
|
24
25
|
|
26
|
+
try:
|
27
|
+
from botocore.context import with_current_context
|
28
|
+
except ImportError:
|
29
|
+
from functools import wraps
|
30
|
+
|
31
|
+
def with_current_context(hook=None):
|
32
|
+
def decorator(func):
|
33
|
+
@wraps(func)
|
34
|
+
def wrapper(*args, **kwargs):
|
35
|
+
return func(*args, **kwargs)
|
36
|
+
|
37
|
+
return wrapper
|
38
|
+
|
39
|
+
return decorator
|
40
|
+
|
41
|
+
|
42
|
+
try:
|
43
|
+
from botocore.useragent import register_feature_id
|
44
|
+
except ImportError:
|
45
|
+
|
46
|
+
def register_feature_id(feature_id):
|
47
|
+
pass
|
48
|
+
|
25
49
|
|
26
50
|
def inject_s3_transfer_methods(class_attributes, **kwargs):
|
27
51
|
utils.inject_attribute(class_attributes, 'upload_file', upload_file)
|
@@ -104,6 +128,7 @@ def object_summary_load(self, *args, **kwargs):
|
|
104
128
|
self.meta.data = response
|
105
129
|
|
106
130
|
|
131
|
+
@with_current_context(partial(register_feature_id, 'S3_TRANSFER'))
|
107
132
|
def upload_file(
|
108
133
|
self, Filename, Bucket, Key, ExtraArgs=None, Callback=None, Config=None
|
109
134
|
):
|
@@ -151,6 +176,7 @@ def upload_file(
|
|
151
176
|
)
|
152
177
|
|
153
178
|
|
179
|
+
@with_current_context(partial(register_feature_id, 'S3_TRANSFER'))
|
154
180
|
def download_file(
|
155
181
|
self, Bucket, Key, Filename, ExtraArgs=None, Callback=None, Config=None
|
156
182
|
):
|
@@ -368,6 +394,7 @@ def object_download_file(
|
|
368
394
|
)
|
369
395
|
|
370
396
|
|
397
|
+
@with_current_context(partial(register_feature_id, 'S3_TRANSFER'))
|
371
398
|
def copy(
|
372
399
|
self,
|
373
400
|
CopySource,
|
@@ -579,6 +606,7 @@ def object_copy(
|
|
579
606
|
)
|
580
607
|
|
581
608
|
|
609
|
+
@with_current_context(partial(register_feature_id, 'S3_TRANSFER'))
|
582
610
|
def upload_fileobj(
|
583
611
|
self, Fileobj, Bucket, Key, ExtraArgs=None, Callback=None, Config=None
|
584
612
|
):
|
@@ -738,6 +766,7 @@ def object_upload_fileobj(
|
|
738
766
|
)
|
739
767
|
|
740
768
|
|
769
|
+
@with_current_context(partial(register_feature_id, 'S3_TRANSFER'))
|
741
770
|
def download_fileobj(
|
742
771
|
self, Bucket, Key, Fileobj, ExtraArgs=None, Callback=None, Config=None
|
743
772
|
):
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: boto3
|
3
|
-
Version: 1.37.
|
3
|
+
Version: 1.37.6
|
4
4
|
Summary: The AWS SDK for Python
|
5
5
|
Home-page: https://github.com/boto/boto3
|
6
6
|
Author: Amazon Web Services
|
@@ -23,7 +23,7 @@ Classifier: Programming Language :: Python :: 3.13
|
|
23
23
|
Requires-Python: >= 3.8
|
24
24
|
License-File: LICENSE
|
25
25
|
License-File: NOTICE
|
26
|
-
Requires-Dist: botocore (<1.38.0,>=1.37.
|
26
|
+
Requires-Dist: botocore (<1.38.0,>=1.37.6)
|
27
27
|
Requires-Dist: jmespath (<2.0.0,>=0.7.1)
|
28
28
|
Requires-Dist: s3transfer (<0.12.0,>=0.11.0)
|
29
29
|
Provides-Extra: crt
|
@@ -1,4 +1,4 @@
|
|
1
|
-
boto3/__init__.py,sha256=
|
1
|
+
boto3/__init__.py,sha256=ryntnUQUSys7m5xThYOO-z1GpayJkMhu1a7C-8uEcQw,3419
|
2
2
|
boto3/compat.py,sha256=1T-LvBYqd0z-L9hI-soU7O7v-678tyWWR2pztF055u0,2887
|
3
3
|
boto3/crt.py,sha256=VFstUtHMZrZ6eHJJ-YdXb4vqfIOcHbv1l51fdeY5cS0,5407
|
4
4
|
boto3/exceptions.py,sha256=i13QpGxoFizxAGCzA2qmF9ldbI5IfBpn37DH75ddRF8,4127
|
@@ -53,11 +53,11 @@ boto3/resources/params.py,sha256=i6KAjOzjzou7ouViYbRZCz0CwqB6fA_6gOJFDIruTV8,611
|
|
53
53
|
boto3/resources/response.py,sha256=aIATkyer_rl5qsp-OFCxe36whvY4JzjgNc9qN-vYMxg,11638
|
54
54
|
boto3/s3/__init__.py,sha256=GkSq-WxXWfVHu1SEcMrlJbzkfw9ACgF3UdCL6fPpTmY,562
|
55
55
|
boto3/s3/constants.py,sha256=ZaYknNwqGwsJEGkL92GXaBs9kjfRbyCDFt89wei8t7E,690
|
56
|
-
boto3/s3/inject.py,sha256=
|
56
|
+
boto3/s3/inject.py,sha256=1q0KZrZL32bSVIVnHv1kGEEn2Wj2tLaMpL0bw9Mx7kg,29402
|
57
57
|
boto3/s3/transfer.py,sha256=_0Xxoycr7CiUbLtSoPeRP8cjK7yYHnmDIm59CQPYDAs,15935
|
58
|
-
boto3-1.37.
|
59
|
-
boto3-1.37.
|
60
|
-
boto3-1.37.
|
61
|
-
boto3-1.37.
|
62
|
-
boto3-1.37.
|
63
|
-
boto3-1.37.
|
58
|
+
boto3-1.37.6.dist-info/LICENSE,sha256=DVQuDIgE45qn836wDaWnYhSdxoLXgpRRKH4RuTjpRZQ,10174
|
59
|
+
boto3-1.37.6.dist-info/METADATA,sha256=yoavKSIwITXwT1TFYKolUMxb1hBn3kmaa-gMrnRoAHg,6649
|
60
|
+
boto3-1.37.6.dist-info/NOTICE,sha256=BPseYUhKeBDxugm7QrwByljJrzOSfXxaIVVuTE0cf6Q,83
|
61
|
+
boto3-1.37.6.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
62
|
+
boto3-1.37.6.dist-info/top_level.txt,sha256=MP6_SI1GcPseXodd3Ykt5F_mCBsrUksiziLxjEZKGUU,6
|
63
|
+
boto3-1.37.6.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|