boto3 1.42.7__py3-none-any.whl → 1.42.8__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 CHANGED
@@ -18,7 +18,7 @@ from boto3.compat import _warn_deprecated_python
18
18
  from boto3.session import Session
19
19
 
20
20
  __author__ = 'Amazon Web Services'
21
- __version__ = '1.42.7'
21
+ __version__ = '1.42.8'
22
22
 
23
23
 
24
24
  # The default Boto3 session; autoloaded when needed.
boto3/docs/__init__.py CHANGED
@@ -45,7 +45,7 @@ def generate_docs(root_dir, session):
45
45
  service_name, session, services_doc_path
46
46
  ).document_service()
47
47
  service_doc_path = os.path.join(
48
- services_doc_path, service_name + '.rst'
48
+ services_doc_path, f"{service_name}.rst"
49
49
  )
50
50
  with open(service_doc_path, 'wb') as f:
51
51
  f.write(docs)
boto3/docs/service.py CHANGED
@@ -190,7 +190,7 @@ class ServiceDocumenter(BaseServiceDocumenter):
190
190
 
191
191
  def _get_example_file(self):
192
192
  return os.path.realpath(
193
- os.path.join(self.EXAMPLE_PATH, self._service_name + '.rst')
193
+ os.path.join(self.EXAMPLE_PATH, f"{self._service_name}.rst")
194
194
  )
195
195
 
196
196
  def _document_examples(self, section):
@@ -311,10 +311,10 @@ class ConditionExpressionBuilder:
311
311
  self._value_placeholder = 'v'
312
312
 
313
313
  def _get_name_placeholder(self):
314
- return '#' + self._name_placeholder + str(self._name_count)
314
+ return f"#{self._name_placeholder}{self._name_count}"
315
315
 
316
316
  def _get_value_placeholder(self):
317
- return ':' + self._value_placeholder + str(self._value_count)
317
+ return f":{self._value_placeholder}{self._value_count}"
318
318
 
319
319
  def reset(self):
320
320
  """Resets the placeholder name and values"""
@@ -451,7 +451,7 @@ class ConditionExpressionBuilder:
451
451
  # Assuming the values are grouped by parenthesis.
452
452
  # IN is the currently the only one that uses this so it maybe
453
453
  # needed to be changed in future.
454
- return '(' + ', '.join(placeholder_list) + ')'
454
+ return f"({', '.join(placeholder_list)})"
455
455
  # Otherwise, treat the value as a single value that needs only
456
456
  # one placeholder.
457
457
  else:
boto3/resources/base.py CHANGED
@@ -104,7 +104,7 @@ class ServiceResource:
104
104
  # Allow setting identifiers as positional arguments in the order
105
105
  # in which they were defined in the ResourceJSON.
106
106
  for i, value in enumerate(args):
107
- setattr(self, '_' + self.meta.identifiers[i], value)
107
+ setattr(self, f"_{self.meta.identifiers[i]}", value)
108
108
 
109
109
  # Allow setting identifiers via keyword arguments. Here we need
110
110
  # extra logic to ignore other keyword arguments like ``client``.
@@ -115,7 +115,7 @@ class ServiceResource:
115
115
  if name not in self.meta.identifiers:
116
116
  raise ValueError(f'Unknown keyword argument: {name}')
117
117
 
118
- setattr(self, '_' + name, value)
118
+ setattr(self, f"_{name}", value)
119
119
 
120
120
  # Validate that all identifiers have been set.
121
121
  for identifier in self.meta.identifiers:
@@ -123,15 +123,11 @@ class ServiceResource:
123
123
  raise ValueError(f'Required parameter {identifier} not set')
124
124
 
125
125
  def __repr__(self):
126
- identifiers = []
127
- for identifier in self.meta.identifiers:
128
- identifiers.append(
129
- f'{identifier}={repr(getattr(self, identifier))}'
130
- )
131
- return "{}({})".format(
132
- self.__class__.__name__,
133
- ', '.join(identifiers),
134
- )
126
+ identifiers = [
127
+ f'{identifier}={repr(getattr(self, identifier))}'
128
+ for identifier in self.meta.identifiers
129
+ ]
130
+ return f"{self.__class__.__name__}({', '.join(identifiers)})"
135
131
 
136
132
  def __eq__(self, other):
137
133
  # Should be instances of the same resource class
@@ -145,7 +145,7 @@ class ResourceFactory:
145
145
  cls_name = resource_name
146
146
  if service_context.service_name == resource_name:
147
147
  cls_name = 'ServiceResource'
148
- cls_name = service_context.service_name + '.' + cls_name
148
+ cls_name = f"{service_context.service_name}.{cls_name}"
149
149
 
150
150
  base_classes = [ServiceResource]
151
151
  if self._emitter is not None:
@@ -325,7 +325,7 @@ class ResourceFactory:
325
325
  # identifiers have a value ``None``. If any are ``None``,
326
326
  # a more informative user error than a generic AttributeError
327
327
  # is raised.
328
- return getattr(self, '_' + identifier.name, None)
328
+ return getattr(self, f"_{identifier.name}", None)
329
329
 
330
330
  get_identifier.__name__ = str(identifier.name)
331
331
  get_identifier.__doc__ = docstring.IdentifierDocstring(
@@ -344,7 +344,7 @@ class ResourceFactory:
344
344
  """
345
345
 
346
346
  def get_identifier(self):
347
- return getattr(self, '_' + identifier.name, None)
347
+ return getattr(self, f"_{identifier.name}", None)
348
348
 
349
349
  get_identifier.__name__ = str(identifier.member_name)
350
350
  get_identifier.__doc__ = docstring.AttributeDocstring(
boto3/resources/model.py CHANGED
@@ -367,8 +367,8 @@ class ResourceModel:
367
367
 
368
368
  if name in names:
369
369
  logger.debug('Renaming %s %s %s', self.name, category, name)
370
- self._renamed[(category, name)] = name + '_' + category
371
- name += '_' + category
370
+ self._renamed[(category, name)] = f"{name}_{category}"
371
+ name += f"_{category}"
372
372
 
373
373
  if name in names:
374
374
  # This isn't good, let's raise instead of trying to keep
boto3/resources/params.py CHANGED
@@ -132,7 +132,7 @@ def build_param_structure(params, target, value, index=None):
132
132
  else:
133
133
  # We have an explicit index
134
134
  index = int(result.group(1))
135
- part = part[: -len(str(index) + '[]')]
135
+ part = part[: -len(f"{index}[]")]
136
136
  else:
137
137
  # Index will be set after we know the proper part
138
138
  # name and that it's a list instance.
boto3/s3/transfer.py CHANGED
@@ -456,9 +456,7 @@ class S3Transfer:
456
456
  # client error.
457
457
  except ClientError as e:
458
458
  raise S3UploadFailedError(
459
- "Failed to upload {} to {}: {}".format(
460
- filename, '/'.join([bucket, key]), e
461
- )
459
+ f"Failed to upload {filename} to {bucket}/{key}: {e}"
462
460
  )
463
461
 
464
462
  def download_file(
boto3/session.py CHANGED
@@ -72,7 +72,7 @@ class Session:
72
72
  if self._session.user_agent_name == 'Botocore':
73
73
  botocore_info = f'Botocore/{self._session.user_agent_version}'
74
74
  if self._session.user_agent_extra:
75
- self._session.user_agent_extra += ' ' + botocore_info
75
+ self._session.user_agent_extra += f" {botocore_info}"
76
76
  else:
77
77
  self._session.user_agent_extra = botocore_info
78
78
  self._session.user_agent_name = 'Boto3'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: boto3
3
- Version: 1.42.7
3
+ Version: 1.42.8
4
4
  Summary: The AWS SDK for Python
5
5
  Home-page: https://github.com/boto/boto3
6
6
  Author: Amazon Web Services
@@ -22,7 +22,7 @@ Classifier: Programming Language :: Python :: 3.14
22
22
  Requires-Python: >= 3.9
23
23
  License-File: LICENSE
24
24
  License-File: NOTICE
25
- Requires-Dist: botocore (<1.43.0,>=1.42.7)
25
+ Requires-Dist: botocore (<1.43.0,>=1.42.8)
26
26
  Requires-Dist: jmespath (<2.0.0,>=0.7.1)
27
27
  Requires-Dist: s3transfer (<0.17.0,>=0.16.0)
28
28
  Provides-Extra: crt
@@ -1,8 +1,8 @@
1
- boto3/__init__.py,sha256=VD5QYxpPsJTZHIII6Ln7rRogpYruJo7VBLxPxkxIPxY,3366
1
+ boto3/__init__.py,sha256=qmJSCBUc2CmHpnod5HjxohGYvGrYxvO7go3p0pThkmg,3366
2
2
  boto3/compat.py,sha256=YlQVXOvdJN39m13gS8WfVJqHbzCw3fElnbYrt1beNYg,3202
3
3
  boto3/crt.py,sha256=x_jZj-QMI5ZD0D2tu91ggqnsGp4pIYEHVHWqVlfckcw,7254
4
4
  boto3/exceptions.py,sha256=drkrpwrC-gQBeaoPlgq4FQFRjd4qom4JHeKhGpsGUm4,4187
5
- boto3/session.py,sha256=k-OcvTvkPglwPYXS8aeDDKK92YEACEJg5ipqWMQhokM,22136
5
+ boto3/session.py,sha256=KD1Av7-V0DOd26H2CZI2Ab8BpkJKgYi4kmAZ2jTN96k,22136
6
6
  boto3/utils.py,sha256=8secEXlszf5Drh4V_IuhUyCSuzY3fHEtO_-Wn-RPFxo,3005
7
7
  boto3/data/cloudformation/2010-05-15/resources-1.json,sha256=5mFVKJVtbVoHyPdHSyNfZ5mpkgCAws5PhnveSu4qzdI,5110
8
8
  boto3/data/cloudwatch/2010-08-01/resources-1.json,sha256=q4AgE8F4pbscd-2U3NYSGAzK55zpMyOQGr83JUxbZXI,11690
@@ -19,7 +19,7 @@ boto3/data/iam/2010-05-08/resources-1.json,sha256=PsOT9yBqSJtluBFHCVRsg6k6Ly2VkS
19
19
  boto3/data/s3/2006-03-01/resources-1.json,sha256=VeKALhMRqv7fyDHMLOM5_RzXUEuDdg_n6OIRi3sdB-o,37204
20
20
  boto3/data/sns/2010-03-31/resources-1.json,sha256=7zmKQhafgsRDu4U1yiw3NXHz-zJhHKrOmtuoYlxQP-s,9091
21
21
  boto3/data/sqs/2012-11-05/resources-1.json,sha256=LRIIr5BId3UDeuBfLn-vRiWsSZCM9_ynqdxF8uzHgy8,6545
22
- boto3/docs/__init__.py,sha256=xEUfkpfz3nGn8-siOf_Q1dqPuPGP_WpUGVCtfnJ-XGc,1844
22
+ boto3/docs/__init__.py,sha256=QM5OK8DS8ugKJE2HfI1BY9gFRvj7p7RyGQVN1MLLZII,1844
23
23
  boto3/docs/action.py,sha256=mCW9IUvZS1eStA0DrSqD1B_hZBz6YTdrQmbI5d2Jzbo,8122
24
24
  boto3/docs/attr.py,sha256=BnG3tR1KKQvvY58aeJiWQ5W5DiMnJ_9jUjmG6tDbFiU,2500
25
25
  boto3/docs/base.py,sha256=nOrQSCeUSIZPkn-I59o7CfjEthgdkpCt_rXtE9zQnXc,2103
@@ -28,12 +28,12 @@ boto3/docs/collection.py,sha256=l8x2qW1HHnQsRDbR0yeUnaOGbgo2oAqxDyhyrbf5bes,1129
28
28
  boto3/docs/docstring.py,sha256=oPugaubdAXY6aNa-kXGI51lP1xE2s4AnfTsLhibf7-E,2511
29
29
  boto3/docs/method.py,sha256=MFX6L3SzXoL8Jz1fkuDLZ-OXMMnKuIBI2kkA8-NRvNg,2725
30
30
  boto3/docs/resource.py,sha256=jsFszXfdvnCX7hVxPyARqPU7H4c5D_zfUBi4N8vybZw,15134
31
- boto3/docs/service.py,sha256=bCd2LPfZOeTkDOKggTyXJYXXPkuYUy91x5KYyqPPQnE,8544
31
+ boto3/docs/service.py,sha256=TZnEIT_GbUL_XtvgTplEJB65pEh48RNglrP7NPMQQdU,8544
32
32
  boto3/docs/subresource.py,sha256=WkEA4qmQbrN7Oz9ofypJOPfATXIzjwampAi2m430NbE,5766
33
33
  boto3/docs/utils.py,sha256=H0UeVvmVbYBZ6F-CVEUxVggLMBOIoA5q8y8hxBFnRKE,5436
34
34
  boto3/docs/waiter.py,sha256=EW0DF9XDtbAVzxUZj3kI20fCoTJJnF9ZjaBRrCILBws,5165
35
35
  boto3/dynamodb/__init__.py,sha256=GkSq-WxXWfVHu1SEcMrlJbzkfw9ACgF3UdCL6fPpTmY,562
36
- boto3/dynamodb/conditions.py,sha256=sjkd0kIqFP_h8aUvysZQel0zts5HF22ogqKiv0t0KRw,15045
36
+ boto3/dynamodb/conditions.py,sha256=AHaDXW0ri0hGMU_MevrElBl8K1Ls9Tm5NYW5UPbf7-4,15028
37
37
  boto3/dynamodb/table.py,sha256=ui8oL634pE6UdMiN6Mz50wAjRQkCF1plq9XsbUEgbWw,6340
38
38
  boto3/dynamodb/transform.py,sha256=JnW5ZzPIfxEcDszSvXKUZmp_1rw445tsddS3FG--JwA,12909
39
39
  boto3/dynamodb/types.py,sha256=ch0vIKaAYexjL42S_OJWyvjWMcb0UbNrmkKGcz76O3c,9541
@@ -44,19 +44,19 @@ boto3/examples/cloudfront.rst,sha256=K-sBWZxoLjABCZHrqAZs57cYefwPmDir03pm6PE_mh4
44
44
  boto3/examples/s3.rst,sha256=a3mbSl7EbNbwd2GKYlP9nXrTHZItZVQRdMG3gamZtSo,5528
45
45
  boto3/resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
46
46
  boto3/resources/action.py,sha256=vPfVHVgXiGqhwpgRSCC7lSsY3vGjgsSiYhXa14CMAqw,9600
47
- boto3/resources/base.py,sha256=lkMPWTgSh9E1PRVtG-VwCresHbQ8-EVn9RqAqv0jnOE,5012
47
+ boto3/resources/base.py,sha256=c0dqK8P-9H3nHSIWmtj6eRSBvilXAdT4D0Pos2ARX-A,4929
48
48
  boto3/resources/collection.py,sha256=aVifZoUVHUarGF9S4Ih8qBUfdqKKOBAEd0BaISKaLio,19113
49
- boto3/resources/factory.py,sha256=iXV5l7UZePNIfkkUMgUNC0tIdJhxr_65m9KYdwIOfKA,22708
50
- boto3/resources/model.py,sha256=dM2jzhW-ZgHxFheliMbV12fy1d75WL3HHpxIBsGJXoo,20341
51
- boto3/resources/params.py,sha256=i6KAjOzjzou7ouViYbRZCz0CwqB6fA_6gOJFDIruTV8,6112
49
+ boto3/resources/factory.py,sha256=T76teDpkRJfbsNejkCpRUK3k1N16LflkR5BByf2ofns,22707
50
+ boto3/resources/model.py,sha256=RTE9rs3vKAvxNI2LMYkOfzZ8Cgy2-zpS4XXjuvd9I3g,20340
51
+ boto3/resources/params.py,sha256=u0D2-il6JbXpUus8NDj3K9ww3047l89lF69QnxwIX5A,6107
52
52
  boto3/resources/response.py,sha256=aIATkyer_rl5qsp-OFCxe36whvY4JzjgNc9qN-vYMxg,11638
53
53
  boto3/s3/__init__.py,sha256=GkSq-WxXWfVHu1SEcMrlJbzkfw9ACgF3UdCL6fPpTmY,562
54
54
  boto3/s3/constants.py,sha256=L0K_cNKUKZRwVNQpBaelkI1Tc-brOCkeW-JtgK7YhJo,718
55
55
  boto3/s3/inject.py,sha256=0UZiCPfurNVJcBOvL1ZJmKEP8fR4syP0rdXuaUulKp0,30377
56
- boto3/s3/transfer.py,sha256=c2MUzTU4YJ5TEw0WDP0XBe38uT6y-StpXZG2s-FkGP8,19071
57
- boto3-1.42.7.dist-info/LICENSE,sha256=DVQuDIgE45qn836wDaWnYhSdxoLXgpRRKH4RuTjpRZQ,10174
58
- boto3-1.42.7.dist-info/METADATA,sha256=uae5neBPP0etjfnh0DdkXnPtMnKkvxTMghuwtMuqEtk,6811
59
- boto3-1.42.7.dist-info/NOTICE,sha256=BPseYUhKeBDxugm7QrwByljJrzOSfXxaIVVuTE0cf6Q,83
60
- boto3-1.42.7.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
61
- boto3-1.42.7.dist-info/top_level.txt,sha256=MP6_SI1GcPseXodd3Ykt5F_mCBsrUksiziLxjEZKGUU,6
62
- boto3-1.42.7.dist-info/RECORD,,
56
+ boto3/s3/transfer.py,sha256=dlUHApjiqnsShxA7DJ-uWRZVsGk2hkGwsFmriJBCmgE,19010
57
+ boto3-1.42.8.dist-info/LICENSE,sha256=DVQuDIgE45qn836wDaWnYhSdxoLXgpRRKH4RuTjpRZQ,10174
58
+ boto3-1.42.8.dist-info/METADATA,sha256=MF4kjjjIpUe9GiIkCw5adBkhMb2C_kbNExA2dibnghk,6811
59
+ boto3-1.42.8.dist-info/NOTICE,sha256=BPseYUhKeBDxugm7QrwByljJrzOSfXxaIVVuTE0cf6Q,83
60
+ boto3-1.42.8.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
61
+ boto3-1.42.8.dist-info/top_level.txt,sha256=MP6_SI1GcPseXodd3Ykt5F_mCBsrUksiziLxjEZKGUU,6
62
+ boto3-1.42.8.dist-info/RECORD,,
File without changes