boto3 1.35.54__py3-none-any.whl → 1.35.55__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/examples/s3.rst +7 -7
- boto3/s3/inject.py +18 -18
- {boto3-1.35.54.dist-info → boto3-1.35.55.dist-info}/METADATA +2 -2
- {boto3-1.35.54.dist-info → boto3-1.35.55.dist-info}/RECORD +9 -9
- {boto3-1.35.54.dist-info → boto3-1.35.55.dist-info}/LICENSE +0 -0
- {boto3-1.35.54.dist-info → boto3-1.35.55.dist-info}/NOTICE +0 -0
- {boto3-1.35.54.dist-info → boto3-1.35.55.dist-info}/WHEEL +0 -0
- {boto3-1.35.54.dist-info → boto3-1.35.55.dist-info}/top_level.txt +0 -0
boto3/__init__.py
CHANGED
boto3/examples/s3.rst
CHANGED
@@ -9,7 +9,7 @@ the objects in the bucket.
|
|
9
9
|
import boto3
|
10
10
|
|
11
11
|
s3 = boto3.resource('s3')
|
12
|
-
bucket = s3.Bucket('
|
12
|
+
bucket = s3.Bucket('amzn-s3-demo-bucket')
|
13
13
|
for obj in bucket.objects.all():
|
14
14
|
print(obj.key)
|
15
15
|
|
@@ -26,7 +26,7 @@ Amazon S3 bucket:
|
|
26
26
|
|
27
27
|
client = boto3.client('s3')
|
28
28
|
paginator = client.get_paginator('list_objects')
|
29
|
-
result = paginator.paginate(Bucket='
|
29
|
+
result = paginator.paginate(Bucket='amzn-s3-demo-bucket', Delimiter='/')
|
30
30
|
for prefix in result.search('CommonPrefixes'):
|
31
31
|
print(prefix.get('Prefix'))
|
32
32
|
|
@@ -43,7 +43,7 @@ restoration is finished.
|
|
43
43
|
import boto3
|
44
44
|
|
45
45
|
s3 = boto3.resource('s3')
|
46
|
-
bucket = s3.Bucket('
|
46
|
+
bucket = s3.Bucket('amzn-s3-demo-bucket')
|
47
47
|
for obj_sum in bucket.objects.all():
|
48
48
|
obj = s3.Object(obj_sum.bucket_name, obj_sum.key)
|
49
49
|
if obj.storage_class == 'GLACIER':
|
@@ -80,7 +80,7 @@ object; S3 already knows how to decrypt the object.
|
|
80
80
|
import boto3
|
81
81
|
import os
|
82
82
|
|
83
|
-
BUCKET = '
|
83
|
+
BUCKET = 'amzn-s3-demo-bucket'
|
84
84
|
s3 = boto3.client('s3')
|
85
85
|
keyid = '<the key id>'
|
86
86
|
|
@@ -122,7 +122,7 @@ Boto3 will automatically compute this value for us.
|
|
122
122
|
import boto3
|
123
123
|
import os
|
124
124
|
|
125
|
-
BUCKET = '
|
125
|
+
BUCKET = 'amzn-s3-demo-bucket'
|
126
126
|
KEY = os.urandom(32)
|
127
127
|
s3 = boto3.client('s3')
|
128
128
|
|
@@ -158,7 +158,7 @@ S3 object.
|
|
158
158
|
s3 = boto3.client('s3')
|
159
159
|
|
160
160
|
s3.download_file(
|
161
|
-
"bucket
|
161
|
+
"amzn-s3-demo-bucket", "key-name", "tmp.txt",
|
162
162
|
ExtraArgs={"VersionId": "my-version-id"}
|
163
163
|
)
|
164
164
|
|
@@ -175,7 +175,7 @@ using JMESPath.
|
|
175
175
|
s3 = boto3.client("s3")
|
176
176
|
|
177
177
|
s3_paginator = s3.get_paginator('list_objects_v2')
|
178
|
-
s3_iterator = s3_paginator.paginate(Bucket='
|
178
|
+
s3_iterator = s3_paginator.paginate(Bucket='amzn-s3-demo-bucket')
|
179
179
|
|
180
180
|
filtered_iterator = s3_iterator.search(
|
181
181
|
"Contents[?to_string(LastModified)>='\"2022-01-05 08:05:37+00:00\"'].Key"
|
boto3/s3/inject.py
CHANGED
@@ -113,7 +113,7 @@ def upload_file(
|
|
113
113
|
|
114
114
|
import boto3
|
115
115
|
s3 = boto3.client('s3')
|
116
|
-
s3.upload_file('/tmp/hello.txt', '
|
116
|
+
s3.upload_file('/tmp/hello.txt', 'amzn-s3-demo-bucket', 'hello.txt')
|
117
117
|
|
118
118
|
Similar behavior as S3Transfer's upload_file() method, except that
|
119
119
|
argument names are capitalized. Detailed examples can be found at
|
@@ -160,7 +160,7 @@ def download_file(
|
|
160
160
|
|
161
161
|
import boto3
|
162
162
|
s3 = boto3.client('s3')
|
163
|
-
s3.download_file('
|
163
|
+
s3.download_file('amzn-s3-demo-bucket', 'hello.txt', '/tmp/hello.txt')
|
164
164
|
|
165
165
|
Similar behavior as S3Transfer's download_file() method,
|
166
166
|
except that parameters are capitalized. Detailed examples can be found at
|
@@ -207,7 +207,7 @@ def bucket_upload_file(
|
|
207
207
|
|
208
208
|
import boto3
|
209
209
|
s3 = boto3.resource('s3')
|
210
|
-
s3.Bucket('
|
210
|
+
s3.Bucket('amzn-s3-demo-bucket').upload_file('/tmp/hello.txt', 'hello.txt')
|
211
211
|
|
212
212
|
Similar behavior as S3Transfer's upload_file() method,
|
213
213
|
except that parameters are capitalized. Detailed examples can be found at
|
@@ -251,7 +251,7 @@ def bucket_download_file(
|
|
251
251
|
|
252
252
|
import boto3
|
253
253
|
s3 = boto3.resource('s3')
|
254
|
-
s3.Bucket('
|
254
|
+
s3.Bucket('amzn-s3-demo-bucket').download_file('hello.txt', '/tmp/hello.txt')
|
255
255
|
|
256
256
|
Similar behavior as S3Transfer's download_file() method,
|
257
257
|
except that parameters are capitalized. Detailed examples can be found at
|
@@ -295,7 +295,7 @@ def object_upload_file(
|
|
295
295
|
|
296
296
|
import boto3
|
297
297
|
s3 = boto3.resource('s3')
|
298
|
-
s3.Object('
|
298
|
+
s3.Object('amzn-s3-demo-bucket', 'hello.txt').upload_file('/tmp/hello.txt')
|
299
299
|
|
300
300
|
Similar behavior as S3Transfer's upload_file() method,
|
301
301
|
except that parameters are capitalized. Detailed examples can be found at
|
@@ -336,7 +336,7 @@ def object_download_file(
|
|
336
336
|
|
337
337
|
import boto3
|
338
338
|
s3 = boto3.resource('s3')
|
339
|
-
s3.Object('
|
339
|
+
s3.Object('amzn-s3-demo-bucket', 'hello.txt').download_file('/tmp/hello.txt')
|
340
340
|
|
341
341
|
Similar behavior as S3Transfer's download_file() method,
|
342
342
|
except that parameters are capitalized. Detailed examples can be found at
|
@@ -388,10 +388,10 @@ def copy(
|
|
388
388
|
import boto3
|
389
389
|
s3 = boto3.resource('s3')
|
390
390
|
copy_source = {
|
391
|
-
'Bucket': '
|
391
|
+
'Bucket': 'amzn-s3-demo-bucket1',
|
392
392
|
'Key': 'mykey'
|
393
393
|
}
|
394
|
-
s3.meta.client.copy(copy_source, '
|
394
|
+
s3.meta.client.copy(copy_source, 'amzn-s3-demo-bucket2', 'otherkey')
|
395
395
|
|
396
396
|
:type CopySource: dict
|
397
397
|
:param CopySource: The name of the source bucket, key name of the
|
@@ -469,10 +469,10 @@ def bucket_copy(
|
|
469
469
|
import boto3
|
470
470
|
s3 = boto3.resource('s3')
|
471
471
|
copy_source = {
|
472
|
-
'Bucket': '
|
472
|
+
'Bucket': 'amzn-s3-demo-bucket1',
|
473
473
|
'Key': 'mykey'
|
474
474
|
}
|
475
|
-
bucket = s3.Bucket('
|
475
|
+
bucket = s3.Bucket('amzn-s3-demo-bucket2')
|
476
476
|
bucket.copy(copy_source, 'otherkey')
|
477
477
|
|
478
478
|
:type CopySource: dict
|
@@ -534,10 +534,10 @@ def object_copy(
|
|
534
534
|
import boto3
|
535
535
|
s3 = boto3.resource('s3')
|
536
536
|
copy_source = {
|
537
|
-
'Bucket': '
|
537
|
+
'Bucket': 'amzn-s3-demo-bucket1',
|
538
538
|
'Key': 'mykey'
|
539
539
|
}
|
540
|
-
bucket = s3.Bucket('
|
540
|
+
bucket = s3.Bucket('amzn-s3-demo-bucket2')
|
541
541
|
obj = bucket.Object('otherkey')
|
542
542
|
obj.copy(copy_source)
|
543
543
|
|
@@ -595,7 +595,7 @@ def upload_fileobj(
|
|
595
595
|
s3 = boto3.client('s3')
|
596
596
|
|
597
597
|
with open('filename', 'rb') as data:
|
598
|
-
s3.upload_fileobj(data, '
|
598
|
+
s3.upload_fileobj(data, 'amzn-s3-demo-bucket', 'mykey')
|
599
599
|
|
600
600
|
:type Fileobj: a file-like object
|
601
601
|
:param Fileobj: A file-like object to upload. At a minimum, it must
|
@@ -656,7 +656,7 @@ def bucket_upload_fileobj(
|
|
656
656
|
|
657
657
|
import boto3
|
658
658
|
s3 = boto3.resource('s3')
|
659
|
-
bucket = s3.Bucket('
|
659
|
+
bucket = s3.Bucket('amzn-s3-demo-bucket')
|
660
660
|
|
661
661
|
with open('filename', 'rb') as data:
|
662
662
|
bucket.upload_fileobj(data, 'mykey')
|
@@ -705,7 +705,7 @@ def object_upload_fileobj(
|
|
705
705
|
|
706
706
|
import boto3
|
707
707
|
s3 = boto3.resource('s3')
|
708
|
-
bucket = s3.Bucket('
|
708
|
+
bucket = s3.Bucket('amzn-s3-demo-bucket')
|
709
709
|
obj = bucket.Object('mykey')
|
710
710
|
|
711
711
|
with open('filename', 'rb') as data:
|
@@ -754,7 +754,7 @@ def download_fileobj(
|
|
754
754
|
s3 = boto3.client('s3')
|
755
755
|
|
756
756
|
with open('filename', 'wb') as data:
|
757
|
-
s3.download_fileobj('
|
757
|
+
s3.download_fileobj('amzn-s3-demo-bucket', 'mykey', data)
|
758
758
|
|
759
759
|
:type Bucket: str
|
760
760
|
:param Bucket: The name of the bucket to download from.
|
@@ -815,7 +815,7 @@ def bucket_download_fileobj(
|
|
815
815
|
|
816
816
|
import boto3
|
817
817
|
s3 = boto3.resource('s3')
|
818
|
-
bucket = s3.Bucket('
|
818
|
+
bucket = s3.Bucket('amzn-s3-demo-bucket')
|
819
819
|
|
820
820
|
with open('filename', 'wb') as data:
|
821
821
|
bucket.download_fileobj('mykey', data)
|
@@ -864,7 +864,7 @@ def object_download_fileobj(
|
|
864
864
|
|
865
865
|
import boto3
|
866
866
|
s3 = boto3.resource('s3')
|
867
|
-
bucket = s3.Bucket('
|
867
|
+
bucket = s3.Bucket('amzn-s3-demo-bucket')
|
868
868
|
obj = bucket.Object('mykey')
|
869
869
|
|
870
870
|
with open('filename', 'wb') as data:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: boto3
|
3
|
-
Version: 1.35.
|
3
|
+
Version: 1.35.55
|
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.36.0,>=1.35.
|
26
|
+
Requires-Dist: botocore (<1.36.0,>=1.35.55)
|
27
27
|
Requires-Dist: jmespath (<2.0.0,>=0.7.1)
|
28
28
|
Requires-Dist: s3transfer (<0.11.0,>=0.10.0)
|
29
29
|
Provides-Extra: crt
|
@@ -1,4 +1,4 @@
|
|
1
|
-
boto3/__init__.py,sha256=
|
1
|
+
boto3/__init__.py,sha256=DxMh-7wg0OhF_KbwwTOtjCY0LBF_GgioNTz3vz7AkNA,3420
|
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
|
@@ -42,7 +42,7 @@ boto3/ec2/__init__.py,sha256=GkSq-WxXWfVHu1SEcMrlJbzkfw9ACgF3UdCL6fPpTmY,562
|
|
42
42
|
boto3/ec2/createtags.py,sha256=pUPJOYn7m0Jcch9UL-DEVGgbQHoyAemECPBhzyBx28c,1577
|
43
43
|
boto3/ec2/deletetags.py,sha256=KaYcqSt8FFM_TW0g0pZ14qDjVnmRCPV0sMe6DprEtvo,1217
|
44
44
|
boto3/examples/cloudfront.rst,sha256=K-sBWZxoLjABCZHrqAZs57cYefwPmDir03pm6PE_mh4,1390
|
45
|
-
boto3/examples/s3.rst,sha256=
|
45
|
+
boto3/examples/s3.rst,sha256=a3mbSl7EbNbwd2GKYlP9nXrTHZItZVQRdMG3gamZtSo,5528
|
46
46
|
boto3/resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
47
47
|
boto3/resources/action.py,sha256=vPfVHVgXiGqhwpgRSCC7lSsY3vGjgsSiYhXa14CMAqw,9600
|
48
48
|
boto3/resources/base.py,sha256=lkMPWTgSh9E1PRVtG-VwCresHbQ8-EVn9RqAqv0jnOE,5012
|
@@ -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=Bg_eVSG2uHL9sqGSoVZuBURNHidVj5NMTULQmX63FtM,28551
|
57
57
|
boto3/s3/transfer.py,sha256=_0Xxoycr7CiUbLtSoPeRP8cjK7yYHnmDIm59CQPYDAs,15935
|
58
|
-
boto3-1.35.
|
59
|
-
boto3-1.35.
|
60
|
-
boto3-1.35.
|
61
|
-
boto3-1.35.
|
62
|
-
boto3-1.35.
|
63
|
-
boto3-1.35.
|
58
|
+
boto3-1.35.55.dist-info/LICENSE,sha256=DVQuDIgE45qn836wDaWnYhSdxoLXgpRRKH4RuTjpRZQ,10174
|
59
|
+
boto3-1.35.55.dist-info/METADATA,sha256=Lq5Mj0bjQj5qP7K4RQ0J3G1r4pQaVyFX6TRPgfdnypI,6651
|
60
|
+
boto3-1.35.55.dist-info/NOTICE,sha256=BPseYUhKeBDxugm7QrwByljJrzOSfXxaIVVuTE0cf6Q,83
|
61
|
+
boto3-1.35.55.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
62
|
+
boto3-1.35.55.dist-info/top_level.txt,sha256=MP6_SI1GcPseXodd3Ykt5F_mCBsrUksiziLxjEZKGUU,6
|
63
|
+
boto3-1.35.55.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|