boto3 1.35.30__tar.gz → 1.35.59__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.
- {boto3-1.35.30 → boto3-1.35.59}/PKG-INFO +3 -2
- {boto3-1.35.30 → boto3-1.35.59}/boto3/__init__.py +1 -1
- {boto3-1.35.30 → boto3-1.35.59}/boto3/examples/s3.rst +7 -7
- {boto3-1.35.30 → boto3-1.35.59}/boto3/s3/inject.py +33 -33
- {boto3-1.35.30 → boto3-1.35.59}/boto3.egg-info/PKG-INFO +3 -2
- {boto3-1.35.30 → boto3-1.35.59}/boto3.egg-info/requires.txt +1 -1
- {boto3-1.35.30 → boto3-1.35.59}/setup.cfg +1 -1
- {boto3-1.35.30 → boto3-1.35.59}/setup.py +2 -1
- {boto3-1.35.30 → boto3-1.35.59}/CONTRIBUTING.rst +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/LICENSE +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/MANIFEST.in +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/NOTICE +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/README.rst +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/compat.py +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/crt.py +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/data/cloudformation/2010-05-15/resources-1.json +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/data/cloudwatch/2010-08-01/resources-1.json +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/data/dynamodb/2012-08-10/resources-1.json +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/data/ec2/2014-10-01/resources-1.json +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/data/ec2/2015-03-01/resources-1.json +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/data/ec2/2015-04-15/resources-1.json +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/data/ec2/2015-10-01/resources-1.json +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/data/ec2/2016-04-01/resources-1.json +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/data/ec2/2016-09-15/resources-1.json +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/data/ec2/2016-11-15/resources-1.json +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/data/glacier/2012-06-01/resources-1.json +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/data/iam/2010-05-08/resources-1.json +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/data/opsworks/2013-02-18/resources-1.json +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/data/s3/2006-03-01/resources-1.json +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/data/sns/2010-03-31/resources-1.json +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/data/sqs/2012-11-05/resources-1.json +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/docs/__init__.py +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/docs/action.py +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/docs/attr.py +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/docs/base.py +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/docs/client.py +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/docs/collection.py +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/docs/docstring.py +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/docs/method.py +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/docs/resource.py +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/docs/service.py +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/docs/subresource.py +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/docs/utils.py +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/docs/waiter.py +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/dynamodb/__init__.py +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/dynamodb/conditions.py +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/dynamodb/table.py +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/dynamodb/transform.py +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/dynamodb/types.py +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/ec2/__init__.py +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/ec2/createtags.py +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/ec2/deletetags.py +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/examples/cloudfront.rst +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/exceptions.py +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/resources/__init__.py +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/resources/action.py +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/resources/base.py +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/resources/collection.py +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/resources/factory.py +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/resources/model.py +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/resources/params.py +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/resources/response.py +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/s3/__init__.py +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/s3/constants.py +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/s3/transfer.py +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/session.py +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3/utils.py +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3.egg-info/SOURCES.txt +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3.egg-info/dependency_links.txt +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/boto3.egg-info/top_level.txt +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/pyproject.toml +0 -0
- {boto3-1.35.30 → boto3-1.35.59}/requirements.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: boto3
|
3
|
-
Version: 1.35.
|
3
|
+
Version: 1.35.59
|
4
4
|
Summary: The AWS SDK for Python
|
5
5
|
Home-page: https://github.com/boto/boto3
|
6
6
|
Author: Amazon Web Services
|
@@ -19,10 +19,11 @@ Classifier: Programming Language :: Python :: 3.9
|
|
19
19
|
Classifier: Programming Language :: Python :: 3.10
|
20
20
|
Classifier: Programming Language :: Python :: 3.11
|
21
21
|
Classifier: Programming Language :: Python :: 3.12
|
22
|
+
Classifier: Programming Language :: Python :: 3.13
|
22
23
|
Requires-Python: >= 3.8
|
23
24
|
License-File: LICENSE
|
24
25
|
License-File: NOTICE
|
25
|
-
Requires-Dist: botocore<1.36.0,>=1.35.
|
26
|
+
Requires-Dist: botocore<1.36.0,>=1.35.59
|
26
27
|
Requires-Dist: jmespath<2.0.0,>=0.7.1
|
27
28
|
Requires-Dist: s3transfer<0.11.0,>=0.10.0
|
28
29
|
Provides-Extra: crt
|
@@ -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"
|
@@ -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
|
@@ -131,7 +131,7 @@ def upload_file(
|
|
131
131
|
:type ExtraArgs: dict
|
132
132
|
:param ExtraArgs: Extra arguments that may be passed to the
|
133
133
|
client operation. For allowed upload arguments see
|
134
|
-
boto3.s3.transfer.S3Transfer.ALLOWED_UPLOAD_ARGS
|
134
|
+
:py:attr:`boto3.s3.transfer.S3Transfer.ALLOWED_UPLOAD_ARGS`.
|
135
135
|
|
136
136
|
:type Callback: function
|
137
137
|
:param Callback: A method which takes a number of bytes transferred to
|
@@ -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
|
@@ -178,7 +178,7 @@ def download_file(
|
|
178
178
|
:type ExtraArgs: dict
|
179
179
|
:param ExtraArgs: Extra arguments that may be passed to the
|
180
180
|
client operation. For allowed download arguments see
|
181
|
-
boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS
|
181
|
+
:py:attr:`boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS`.
|
182
182
|
|
183
183
|
:type Callback: function
|
184
184
|
:param Callback: A method which takes a number of bytes transferred to
|
@@ -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
|
@@ -222,7 +222,7 @@ def bucket_upload_file(
|
|
222
222
|
:type ExtraArgs: dict
|
223
223
|
:param ExtraArgs: Extra arguments that may be passed to the
|
224
224
|
client operation. For allowed upload arguments see
|
225
|
-
boto3.s3.transfer.S3Transfer.ALLOWED_UPLOAD_ARGS
|
225
|
+
:py:attr:`boto3.s3.transfer.S3Transfer.ALLOWED_UPLOAD_ARGS`.
|
226
226
|
|
227
227
|
:type Callback: function
|
228
228
|
:param Callback: A method which takes a number of bytes transferred to
|
@@ -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
|
@@ -266,7 +266,7 @@ def bucket_download_file(
|
|
266
266
|
:type ExtraArgs: dict
|
267
267
|
:param ExtraArgs: Extra arguments that may be passed to the
|
268
268
|
client operation. For allowed download arguments see
|
269
|
-
boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS
|
269
|
+
:py:attr:`boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS`.
|
270
270
|
|
271
271
|
:type Callback: function
|
272
272
|
:param Callback: A method which takes a number of bytes transferred to
|
@@ -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
|
@@ -307,7 +307,7 @@ def object_upload_file(
|
|
307
307
|
:type ExtraArgs: dict
|
308
308
|
:param ExtraArgs: Extra arguments that may be passed to the
|
309
309
|
client operation. For allowed upload arguments see
|
310
|
-
boto3.s3.transfer.S3Transfer.ALLOWED_UPLOAD_ARGS
|
310
|
+
:py:attr:`boto3.s3.transfer.S3Transfer.ALLOWED_UPLOAD_ARGS`.
|
311
311
|
|
312
312
|
:type Callback: function
|
313
313
|
:param Callback: A method which takes a number of bytes transferred to
|
@@ -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
|
@@ -348,7 +348,7 @@ def object_download_file(
|
|
348
348
|
:type ExtraArgs: dict
|
349
349
|
:param ExtraArgs: Extra arguments that may be passed to the
|
350
350
|
client operation. For allowed download arguments see
|
351
|
-
boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS
|
351
|
+
:py:attr:`boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS`.
|
352
352
|
|
353
353
|
:type Callback: function
|
354
354
|
:param Callback: A method which takes a number of bytes transferred to
|
@@ -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
|
@@ -409,7 +409,7 @@ def copy(
|
|
409
409
|
:type ExtraArgs: dict
|
410
410
|
:param ExtraArgs: Extra arguments that may be passed to the
|
411
411
|
client operation. For allowed download arguments see
|
412
|
-
boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS
|
412
|
+
:py:attr:`boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS`.
|
413
413
|
|
414
414
|
:type Callback: function
|
415
415
|
:param Callback: A method which takes a number of bytes transferred to
|
@@ -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
|
@@ -488,7 +488,7 @@ def bucket_copy(
|
|
488
488
|
:type ExtraArgs: dict
|
489
489
|
:param ExtraArgs: Extra arguments that may be passed to the
|
490
490
|
client operation. For allowed download arguments see
|
491
|
-
boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS
|
491
|
+
:py:attr:`boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS`.
|
492
492
|
|
493
493
|
:type Callback: function
|
494
494
|
:param Callback: A method which takes a number of bytes transferred to
|
@@ -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
|
|
@@ -551,7 +551,7 @@ def object_copy(
|
|
551
551
|
:type ExtraArgs: dict
|
552
552
|
:param ExtraArgs: Extra arguments that may be passed to the
|
553
553
|
client operation. For allowed download arguments see
|
554
|
-
boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS
|
554
|
+
:py:attr:`boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS`.
|
555
555
|
|
556
556
|
:type Callback: function
|
557
557
|
:param Callback: A method which takes a number of bytes transferred to
|
@@ -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
|
@@ -610,7 +610,7 @@ def upload_fileobj(
|
|
610
610
|
:type ExtraArgs: dict
|
611
611
|
:param ExtraArgs: Extra arguments that may be passed to the
|
612
612
|
client operation. For allowed upload arguments see
|
613
|
-
boto3.s3.transfer.S3Transfer.ALLOWED_UPLOAD_ARGS
|
613
|
+
:py:attr:`boto3.s3.transfer.S3Transfer.ALLOWED_UPLOAD_ARGS`.
|
614
614
|
|
615
615
|
:type Callback: function
|
616
616
|
:param Callback: A method which takes a number of bytes transferred to
|
@@ -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')
|
@@ -671,7 +671,7 @@ def bucket_upload_fileobj(
|
|
671
671
|
:type ExtraArgs: dict
|
672
672
|
:param ExtraArgs: Extra arguments that may be passed to the
|
673
673
|
client operation. For allowed upload arguments see
|
674
|
-
boto3.s3.transfer.S3Transfer.ALLOWED_UPLOAD_ARGS
|
674
|
+
:py:attr:`boto3.s3.transfer.S3Transfer.ALLOWED_UPLOAD_ARGS`.
|
675
675
|
|
676
676
|
:type Callback: function
|
677
677
|
:param Callback: A method which takes a number of bytes transferred to
|
@@ -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:
|
@@ -718,7 +718,7 @@ def object_upload_fileobj(
|
|
718
718
|
:type ExtraArgs: dict
|
719
719
|
:param ExtraArgs: Extra arguments that may be passed to the
|
720
720
|
client operation. For allowed upload arguments see
|
721
|
-
boto3.s3.transfer.S3Transfer.ALLOWED_UPLOAD_ARGS
|
721
|
+
:py:attr:`boto3.s3.transfer.S3Transfer.ALLOWED_UPLOAD_ARGS`.
|
722
722
|
|
723
723
|
:type Callback: function
|
724
724
|
:param Callback: A method which takes a number of bytes transferred to
|
@@ -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.
|
@@ -769,7 +769,7 @@ def download_fileobj(
|
|
769
769
|
:type ExtraArgs: dict
|
770
770
|
:param ExtraArgs: Extra arguments that may be passed to the
|
771
771
|
client operation. For allowed download arguments see
|
772
|
-
boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS
|
772
|
+
:py:attr:`boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS`.
|
773
773
|
|
774
774
|
:type Callback: function
|
775
775
|
:param Callback: A method which takes a number of bytes transferred to
|
@@ -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)
|
@@ -830,7 +830,7 @@ def bucket_download_fileobj(
|
|
830
830
|
:type ExtraArgs: dict
|
831
831
|
:param ExtraArgs: Extra arguments that may be passed to the
|
832
832
|
client operation. For allowed download arguments see
|
833
|
-
boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS
|
833
|
+
:py:attr:`boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS`.
|
834
834
|
|
835
835
|
:type Callback: function
|
836
836
|
:param Callback: A method which takes a number of bytes transferred to
|
@@ -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:
|
@@ -877,7 +877,7 @@ def object_download_fileobj(
|
|
877
877
|
:type ExtraArgs: dict
|
878
878
|
:param ExtraArgs: Extra arguments that may be passed to the
|
879
879
|
client operation. For allowed download arguments see
|
880
|
-
boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS
|
880
|
+
:py:attr:`boto3.s3.transfer.S3Transfer.ALLOWED_DOWNLOAD_ARGS`.
|
881
881
|
|
882
882
|
:type Callback: function
|
883
883
|
:param Callback: A method which takes a number of bytes transferred to
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: boto3
|
3
|
-
Version: 1.35.
|
3
|
+
Version: 1.35.59
|
4
4
|
Summary: The AWS SDK for Python
|
5
5
|
Home-page: https://github.com/boto/boto3
|
6
6
|
Author: Amazon Web Services
|
@@ -19,10 +19,11 @@ Classifier: Programming Language :: Python :: 3.9
|
|
19
19
|
Classifier: Programming Language :: Python :: 3.10
|
20
20
|
Classifier: Programming Language :: Python :: 3.11
|
21
21
|
Classifier: Programming Language :: Python :: 3.12
|
22
|
+
Classifier: Programming Language :: Python :: 3.13
|
22
23
|
Requires-Python: >= 3.8
|
23
24
|
License-File: LICENSE
|
24
25
|
License-File: NOTICE
|
25
|
-
Requires-Dist: botocore<1.36.0,>=1.35.
|
26
|
+
Requires-Dist: botocore<1.36.0,>=1.35.59
|
26
27
|
Requires-Dist: jmespath<2.0.0,>=0.7.1
|
27
28
|
Requires-Dist: s3transfer<0.11.0,>=0.10.0
|
28
29
|
Provides-Extra: crt
|
@@ -14,7 +14,7 @@ VERSION_RE = re.compile(r'''__version__ = ['"]([0-9.]+)['"]''')
|
|
14
14
|
|
15
15
|
|
16
16
|
requires = [
|
17
|
-
'botocore>=1.35.
|
17
|
+
'botocore>=1.35.59,<1.36.0',
|
18
18
|
'jmespath>=0.7.1,<2.0.0',
|
19
19
|
's3transfer>=0.10.0,<0.11.0',
|
20
20
|
]
|
@@ -52,6 +52,7 @@ setup(
|
|
52
52
|
'Programming Language :: Python :: 3.10',
|
53
53
|
'Programming Language :: Python :: 3.11',
|
54
54
|
'Programming Language :: Python :: 3.12',
|
55
|
+
'Programming Language :: Python :: 3.13',
|
55
56
|
],
|
56
57
|
project_urls={
|
57
58
|
'Documentation': 'https://boto3.amazonaws.com/v1/documentation/api/latest/index.html',
|
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
|
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
|
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
|
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
|
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
|
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
|