boto3-refresh-session 7.1.3__py3-none-any.whl → 7.1.6__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.

Potentially problematic release.


This version of boto3-refresh-session might be problematic. Click here for more details.

@@ -13,7 +13,7 @@ from .session import *
13
13
 
14
14
  __all__.extend(session.__all__)
15
15
  __all__.extend(exceptions.__all__)
16
- __version__ = "7.1.3"
16
+ __version__ = "7.1.6"
17
17
  __title__ = "boto3-refresh-session"
18
18
  __author__ = "Mike Letts"
19
19
  __maintainer__ = "Mike Letts"
@@ -21,12 +21,12 @@ from typing import Any
21
21
 
22
22
  from botocore.config import Config
23
23
 
24
- from ...exceptions import BRSValidationError, BRSWarning
25
- from ..constants import (
24
+ from ..exceptions import BRSValidationError, BRSWarning
25
+ from .constants import (
26
26
  ASSUME_ROLE_CONFIG_PARAMETERS,
27
27
  STS_CLIENT_CONFIG_PARAMETERS,
28
28
  )
29
- from ..typing import PolicyDescriptorType, ProvidedContext, Tag
29
+ from .typing import PolicyDescriptorType, ProvidedContext, Tag
30
30
 
31
31
 
32
32
  class BaseConfig(dict, ABC):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: boto3-refresh-session
3
- Version: 7.1.3
3
+ Version: 7.1.6
4
4
  Summary: A simple Python package for refreshing the temporary security credentials in a boto3.session.Session object automatically.
5
5
  License: MPL-2.0
6
6
  License-File: LICENSE
@@ -156,73 +156,11 @@ boto3-refresh-session is available on PyPI:
156
156
  pip install boto3-refresh-session
157
157
  ```
158
158
 
159
- ## Quick Start Guide
160
-
161
- Basic, bare-bones initialization:
162
-
163
- ```python
164
- from boto3_refresh_session import AssumeRoleConfig, RefreshableSession
165
-
166
- session = RefreshableSession(
167
- AssumeRoleConfig(
168
- RoleArn="<your role arn>"
169
- )
170
- )
171
- ```
172
-
173
- Basic initilization including some additional session parameters:
174
-
175
- ```python
176
- from boto3_refresh_session import AssumeRoleConfig, RefreshableSession
177
-
178
- session = RefreshableSession(
179
- AssumeRoleConfig(
180
- RoleArn="<your role arn>"
181
- ),
182
- region_name="<your region name>",
183
- profile_name="<your aws profile name>",
184
- )
185
- ```
186
-
187
- Slightly advanced initialization using an MFA token provider (Yubikey):
188
-
189
- ```python
190
- from boto3_refresh_session import AssumeRoleConfig, RefreshableSession
191
- import subprocess
192
- from typing import Sequence
193
-
194
-
195
- def mfa_token_provider(cmd: Sequence[str], timeout: float):
196
- p = subprocess.run(
197
- list(cmd),
198
- check=False,
199
- capture_output=True,
200
- text=True,
201
- timeout=timeout,
202
- )
203
- return (p.stdout or "").strip()
204
-
205
-
206
- mfa_token_provider_kwargs = {
207
- "cmd": ["ykman", "oath", "code", "--single", "AWS-prod"], # example token source
208
- "timeout": 3.0,
209
- }
210
-
211
- session = RefreshableSession(
212
- AssumeRoleConfig(
213
- RoleArn="<your role arn>",
214
- SerialNumber="<your MFA device arn>",
215
- ),
216
- mfa_token_provider=mfa_token_provider,
217
- mfa_token_provider_kwargs=mfa_token_provider_kwargs,
218
- )
219
- ```
220
-
221
159
  ## Usage
222
160
 
223
- Refer to the [official usage documentation](https://michaelthomasletts.com/boto3-refresh-session/usage.html) for guidance on general usage.
161
+ Refer to the [official usage documentation](https://michaelthomasletts.com/boto3-refresh-session/usage.html) for guidance on how to use boto3-refresh-session.
224
162
 
225
- Refer to the [official API documentation](https://michaelthomasletts.com/boto3-refresh-session/modules/index.html) for technical information.
163
+ Refer to the [official API documentation](https://michaelthomasletts.com/boto3-refresh-session/modules/index.html) for technical information about boto3-refresh-session.
226
164
 
227
165
  ## Versions
228
166
 
@@ -1,4 +1,4 @@
1
- boto3_refresh_session/__init__.py,sha256=IdfzDufhNbMK1jCkUvwCIsgYB7-OTkNZeEcWPv8FMUk,620
1
+ boto3_refresh_session/__init__.py,sha256=F4wjqFKsKQMumVe7ovMUKmPV1MQP2k4aDpt0OrvDqE4,620
2
2
  boto3_refresh_session/exceptions.py,sha256=ypSr7p5Tf0k_E7cf5r-bl336vofNHGRGXsGdkQTyX58,4412
3
3
  boto3_refresh_session/methods/__init__.py,sha256=18a2jb5VvY2FdUhHJ4T1lkfotHpbAb8zdMjqxZ3e6tc,394
4
4
  boto3_refresh_session/methods/custom.py,sha256=jHRkleg9wvfJ9P0zsWezAr5-93CbXmVaWd5xYjiynBQ,5346
@@ -9,13 +9,12 @@ boto3_refresh_session/methods/sts.py,sha256=Z8oix37oK0ClHB_YVcsy5H2UCSJObbDbjNW3
9
9
  boto3_refresh_session/session.py,sha256=dqcKcC3mknrolpaBv-en67__Xsn0ocJtMF_PCJaim6E,3997
10
10
  boto3_refresh_session/utils/__init__.py,sha256=B-bq0LB9XTlP6VjoGLdsIecWxzauULTRQRyEN1YYLfQ,546
11
11
  boto3_refresh_session/utils/cache.py,sha256=3zgms7KZSwPMvTnc39ndPqByB7KqpMeZwuV_bv7S6y8,3126
12
- boto3_refresh_session/utils/config/__init__.py,sha256=AD-dIem6xwiISXEs-xQA8NOhMKibMkBSt00kLpz8JJg,290
13
- boto3_refresh_session/utils/config/config.py,sha256=gfVHla7dDgrBAt9Prr_UU6WQmA6Y3lWNk6Mg5PL-tKo,9864
12
+ boto3_refresh_session/utils/config.py,sha256=7fOD4ZjtCf4Ssgad83sIbUUmU2dMrinWoYmuprki4Qg,9861
14
13
  boto3_refresh_session/utils/constants.py,sha256=iQ6XnSe8p9DH95Ylnhpp6-Pi6amgnBWJSBloHWBK_VA,1132
15
14
  boto3_refresh_session/utils/internal.py,sha256=Xvo3D5_MFoldmqNISOmfQf7qydIbQOCVE-0EQY_8pjg,14755
16
15
  boto3_refresh_session/utils/typing.py,sha256=pfUP9bGHoh5JlfMBJL-yDBLYykE2gu2A55uLsOS1tVs,3407
17
- boto3_refresh_session-7.1.3.dist-info/METADATA,sha256=ZJvtmiLo52bygfZHP6HnHVa86ckySU6EbgJcXSmFdCw,8457
18
- boto3_refresh_session-7.1.3.dist-info/WHEEL,sha256=3ny-bZhpXrU6vSQ1UPG34FoxZBp3lVcvK0LkgUz6VLk,88
19
- boto3_refresh_session-7.1.3.dist-info/licenses/LICENSE,sha256=hs-WVkefHtuCJFuYX0oswNUDuUV2br7aQmnGCzB2ma4,16725
20
- boto3_refresh_session-7.1.3.dist-info/licenses/NOTICE,sha256=4nNFSLvbelWrxMEBMrkcmgi93AaF0NckUgNIf9i6Kbs,863
21
- boto3_refresh_session-7.1.3.dist-info/RECORD,,
16
+ boto3_refresh_session-7.1.6.dist-info/METADATA,sha256=tH2ldzzAAcRW3UlCnXY43axP6O76ibOmhMp06jf1Isc,7172
17
+ boto3_refresh_session-7.1.6.dist-info/WHEEL,sha256=3ny-bZhpXrU6vSQ1UPG34FoxZBp3lVcvK0LkgUz6VLk,88
18
+ boto3_refresh_session-7.1.6.dist-info/licenses/LICENSE,sha256=hs-WVkefHtuCJFuYX0oswNUDuUV2br7aQmnGCzB2ma4,16725
19
+ boto3_refresh_session-7.1.6.dist-info/licenses/NOTICE,sha256=4nNFSLvbelWrxMEBMrkcmgi93AaF0NckUgNIf9i6Kbs,863
20
+ boto3_refresh_session-7.1.6.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- # This Source Code Form is subject to the terms of the Mozilla Public
2
- # License, v. 2.0. If a copy of the MPL was not distributed with this
3
- # file, You can obtain one at https://mozilla.org/MPL/2.0/.
4
-
5
- __all__ = []
6
-
7
- from . import config
8
- from .config import *
9
-
10
- __all__.extend(config.__all__)