boto3-refresh-session 6.2.5__py3-none-any.whl → 6.2.7__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.
@@ -9,7 +9,7 @@ from .session import *
9
9
 
10
10
  __all__.extend(session.__all__)
11
11
  __all__.extend(exceptions.__all__)
12
- __version__ = "6.2.5"
12
+ __version__ = "6.2.7"
13
13
  __title__ = "boto3-refresh-session"
14
14
  __author__ = "Mike Letts"
15
15
  __maintainer__ = "Mike Letts"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: boto3-refresh-session
3
- Version: 6.2.5
3
+ Version: 6.2.7
4
4
  Summary: A simple Python package for refreshing the temporary security credentials in a boto3.session.Session object automatically.
5
5
  License: MIT
6
6
  License-File: LICENSE
@@ -155,7 +155,11 @@ pip install boto3-refresh-session
155
155
 
156
156
  ## 🏃 Quick Start Guide
157
157
 
158
- The following example shows how to initialize `RefreshableSession` using an AWS profile, enable MFA support, initialize an S3 client with some configurations, and list some buckets in S3.
158
+ The following example shows how to:
159
+
160
+ - Initialize `RefreshableSession` _using an AWS profile_
161
+ - Enable MFA support
162
+ - Initialize an S3 client with some configurations
159
163
 
160
164
  ```python
161
165
  from boto3_refresh_session import RefreshableSession
@@ -164,7 +168,7 @@ import subprocess
164
168
 
165
169
 
166
170
  def mfa_token_provider(cmd: list[str], timeout: float = 10.0):
167
- """Returns an MFA code. This is completely optional, unless you want MFA enabled."""
171
+ """Returns an MFA code. Accepts commands which emit tokens."""
168
172
 
169
173
  p = subprocess.run(
170
174
  cmd,
@@ -188,6 +192,7 @@ session = RefreshableSession(
188
192
  "timeout": 3.0
189
193
  },
190
194
  profile_name="test-aws-profile",
195
+ region_name="us-east-1",
191
196
  )
192
197
  s3 = session.client("s3", config=Config(retries={"max_attempts": 2}))
193
198
  s3.list_buckets()
@@ -1,4 +1,4 @@
1
- boto3_refresh_session/__init__.py,sha256=TZOTX4oLP6KUcWm2lCwdm11KgKL49whkLBl32yOv7EU,415
1
+ boto3_refresh_session/__init__.py,sha256=ZVywXE56rxtLErLk1k-mQKBxf8NWS4IcBfQTH0lWKq4,415
2
2
  boto3_refresh_session/exceptions.py,sha256=uS0tcAl9UZoCvktOz08GC59JDNV4ml-su8CVUs0qzNw,1287
3
3
  boto3_refresh_session/methods/__init__.py,sha256=FpwWixSVpy_6pUe1u4fXmjO-_fDH--qTk_xrMnBCHxU,193
4
4
  boto3_refresh_session/methods/custom.py,sha256=i07paDNtzi_92Bqc7Pk4cEVfKPV5okEOGHyXipp6HWQ,5136
@@ -11,8 +11,8 @@ boto3_refresh_session/utils/__init__.py,sha256=wll77Z3SIQCfJqOKjSZC1EjXUT-7KOB31
11
11
  boto3_refresh_session/utils/cache.py,sha256=NEDu8bS_wj3O0KQpHnhqZAYsUE4-Xs0Ec5YqzWsK2tI,2836
12
12
  boto3_refresh_session/utils/internal.py,sha256=VBKgPTdqyT6slOGu6XrdDE4CCwtj4dK15LpNuR0Ssr8,14546
13
13
  boto3_refresh_session/utils/typing.py,sha256=DW5sm-KPi5wetadJXwkkTpwEGx5KiriBkXIAGcWVYSI,3171
14
- boto3_refresh_session-6.2.5.dist-info/METADATA,sha256=nytkgxWL2e6ECb1ZVfvSU4H7KpTUu6jJaYR62-cRahM,26565
15
- boto3_refresh_session-6.2.5.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
16
- boto3_refresh_session-6.2.5.dist-info/licenses/LICENSE,sha256=I3ZYTXAjbIly6bm6J-TvFTuuHwTKws4h89QaY5c5HiY,1067
17
- boto3_refresh_session-6.2.5.dist-info/licenses/NOTICE,sha256=1s8r33qbl1z0YvPB942iWgvbkP94P_e8AnROr1qXXuw,939
18
- boto3_refresh_session-6.2.5.dist-info/RECORD,,
14
+ boto3_refresh_session-6.2.7.dist-info/METADATA,sha256=aS1YDiaOMe_Get_LcLheh-AzTX7uG4QopI9VQzTiYXY,26548
15
+ boto3_refresh_session-6.2.7.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
16
+ boto3_refresh_session-6.2.7.dist-info/licenses/LICENSE,sha256=I3ZYTXAjbIly6bm6J-TvFTuuHwTKws4h89QaY5c5HiY,1067
17
+ boto3_refresh_session-6.2.7.dist-info/licenses/NOTICE,sha256=1s8r33qbl1z0YvPB942iWgvbkP94P_e8AnROr1qXXuw,939
18
+ boto3_refresh_session-6.2.7.dist-info/RECORD,,