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.
- boto3_refresh_session/__init__.py +1 -1
- {boto3_refresh_session-6.2.5.dist-info → boto3_refresh_session-6.2.7.dist-info}/METADATA +8 -3
- {boto3_refresh_session-6.2.5.dist-info → boto3_refresh_session-6.2.7.dist-info}/RECORD +6 -6
- {boto3_refresh_session-6.2.5.dist-info → boto3_refresh_session-6.2.7.dist-info}/WHEEL +0 -0
- {boto3_refresh_session-6.2.5.dist-info → boto3_refresh_session-6.2.7.dist-info}/licenses/LICENSE +0 -0
- {boto3_refresh_session-6.2.5.dist-info → boto3_refresh_session-6.2.7.dist-info}/licenses/NOTICE +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: boto3-refresh-session
|
|
3
|
-
Version: 6.2.
|
|
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
|
|
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.
|
|
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=
|
|
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.
|
|
15
|
-
boto3_refresh_session-6.2.
|
|
16
|
-
boto3_refresh_session-6.2.
|
|
17
|
-
boto3_refresh_session-6.2.
|
|
18
|
-
boto3_refresh_session-6.2.
|
|
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,,
|
|
File without changes
|
{boto3_refresh_session-6.2.5.dist-info → boto3_refresh_session-6.2.7.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
{boto3_refresh_session-6.2.5.dist-info → boto3_refresh_session-6.2.7.dist-info}/licenses/NOTICE
RENAMED
|
File without changes
|