boto3-refresh-session 1.0.27__py3-none-any.whl → 1.0.28__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/session.py +1 -1
- {boto3_refresh_session-1.0.27.dist-info → boto3_refresh_session-1.0.28.dist-info}/METADATA +21 -13
- boto3_refresh_session-1.0.28.dist-info/RECORD +7 -0
- boto3_refresh_session-1.0.27.dist-info/RECORD +0 -7
- {boto3_refresh_session-1.0.27.dist-info → boto3_refresh_session-1.0.28.dist-info}/LICENSE +0 -0
- {boto3_refresh_session-1.0.27.dist-info → boto3_refresh_session-1.0.28.dist-info}/NOTICE +0 -0
- {boto3_refresh_session-1.0.27.dist-info → boto3_refresh_session-1.0.28.dist-info}/WHEEL +0 -0
boto3_refresh_session/session.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
from __future__ import annotations
|
2
2
|
|
3
3
|
__doc__ = """
|
4
|
-
A :class:`boto3.session.Session` object that automatically refreshes temporary
|
4
|
+
A :class:`boto3.session.Session` object that automatically refreshes temporary AWS
|
5
5
|
credentials.
|
6
6
|
"""
|
7
7
|
__all__ = ["RefreshableSession"]
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: boto3-refresh-session
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.28
|
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
|
Keywords: boto3,botocore,aws
|
@@ -21,19 +21,27 @@ Project-URL: Documentation, https://michaelthomasletts.github.io/boto3-refresh-s
|
|
21
21
|
Project-URL: Repository, https://github.com/michaelthomasletts/boto3-refresh-session
|
22
22
|
Description-Content-Type: text/markdown
|
23
23
|
|
24
|
-
|
24
|
+
<p align="center">
|
25
|
+
<img src="https://raw.githubusercontent.com/michaelthomasletts/boto3-refresh-session/refs/heads/main/doc/brs.png" />
|
26
|
+
</p>
|
25
27
|
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-

|
30
|
-
[](https://pepy.tech/projects/boto3-refresh-session)
|
28
|
+
<p align="center">
|
29
|
+
<em>A simple Python package for refreshing the temporary security credentials in a `boto3.session.Session` object automatically.</em>
|
30
|
+
</p>
|
31
31
|
|
32
32
|
<p align="center">
|
33
|
-
<img src="https://
|
33
|
+
<img src="https://img.shields.io/pypi/v/boto3-refresh-session?color=%23FF0000FF" alt="PyPI - Version"/>
|
34
|
+
<a href="https://github.com/michaelthomasletts/boto3-refresh-session/actions/workflows/push.yml">
|
35
|
+
<img src="https://img.shields.io/github/actions/workflow/status/michaelthomasletts/boto3-refresh-session/push.yml?logo=github&color=%23FF0000FF" alt="Workflow"/>
|
36
|
+
</a>
|
37
|
+
<img src="https://img.shields.io/pypi/pyversions/boto3-refresh-session?style=pypi&color=%23FF0000FF" alt="Python Version"/>
|
38
|
+
<img src="https://img.shields.io/github/last-commit/michaelthomasletts/boto3-refresh-session?logo=github&color=%23FF0000FF" alt="GitHub last commit"/>
|
39
|
+
<a href="https://pepy.tech/projects/boto3-refresh-session">
|
40
|
+
<img src="https://img.shields.io/badge/downloads-45.6K-red?logo=python&color=%23FF0000" alt="Downloads"/>
|
41
|
+
</a>
|
34
42
|
</p>
|
35
43
|
|
36
|
-
|
44
|
+
## Links
|
37
45
|
|
38
46
|
- [Official Documentation](https://michaelthomasletts.github.io/boto3-refresh-session/index.html)
|
39
47
|
- [Q&A](https://michaelthomasletts.github.io/boto3-refresh-session/qanda.html)
|
@@ -42,17 +50,17 @@ A simple Python package for refreshing the temporary security credentials in a `
|
|
42
50
|
- [Contributing](https://michaelthomasletts.github.io/boto3-refresh-session/contributing.html)
|
43
51
|
- [Authorization](https://michaelthomasletts.github.io/boto3-refresh-session/authorization.html)
|
44
52
|
|
45
|
-
|
53
|
+
## Testimonials
|
46
54
|
|
47
55
|
_"Most of my work is on tooling related to AWS security, so I'm pretty choosy about boto3 credentials-adjacent code. I often opt to just write this sort of thing myself so I at least know that I can reason about it. But I found boto3-refresh-session to be very clean and intuitive . . . we're using the RefreshableSession class as part of a client cache construct . . . we're using AWS Lambda to perform lots of operations across several regions in hundreds of accounts, over and over again, all day every day. And it turns out that there's a surprising amount of overhead to creating boto3 clients (mostly deserializing service definition json), so we can run MUCH more efficiently if we keep a cache of clients, all equipped with automatically refreshing sessions."_
|
48
56
|
|
49
|
-
|
57
|
+
## Installation
|
50
58
|
|
51
59
|
```bash
|
52
60
|
pip install boto3-refresh-session
|
53
61
|
```
|
54
62
|
|
55
|
-
|
63
|
+
## Usage
|
56
64
|
|
57
65
|
```python
|
58
66
|
import boto3_refresh_session as brs
|
@@ -91,7 +99,7 @@ s3 = session.client(service_name='s3')
|
|
91
99
|
buckets = s3.list_buckets()
|
92
100
|
```
|
93
101
|
|
94
|
-
|
102
|
+
## Raison d'être
|
95
103
|
|
96
104
|
It is common for data pipelines and workflows that interact with the AWS API via
|
97
105
|
`boto3` to run for a long time and, accordingly, for temporary credentials to
|
@@ -0,0 +1,7 @@
|
|
1
|
+
boto3_refresh_session/__init__.py,sha256=XIlPBw9h_Hhm2GR3Z1Vv4D0jZWB7Dfoz6hzqDm6Hn-M,158
|
2
|
+
boto3_refresh_session/session.py,sha256=jDSjEHIZkGvMEOKzCtcOT7j41rOOoR_tei_dffS0Cww,5887
|
3
|
+
boto3_refresh_session-1.0.28.dist-info/LICENSE,sha256=I3ZYTXAjbIly6bm6J-TvFTuuHwTKws4h89QaY5c5HiY,1067
|
4
|
+
boto3_refresh_session-1.0.28.dist-info/METADATA,sha256=i0MT2XF3MGvujgJTQjPbTVzH8LcJXdpPeGFsRmkKI_0,5564
|
5
|
+
boto3_refresh_session-1.0.28.dist-info/NOTICE,sha256=1s8r33qbl1z0YvPB942iWgvbkP94P_e8AnROr1qXXuw,939
|
6
|
+
boto3_refresh_session-1.0.28.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
7
|
+
boto3_refresh_session-1.0.28.dist-info/RECORD,,
|
@@ -1,7 +0,0 @@
|
|
1
|
-
boto3_refresh_session/__init__.py,sha256=u-yaYDY_nLxKdDRtq3AAiRc46PlFibCyp_3xOulKlTQ,158
|
2
|
-
boto3_refresh_session/session.py,sha256=PyF7HD_K5-X8e2FR-CO-3rVRHpoe7tP5uF_vdia5Kt8,5883
|
3
|
-
boto3_refresh_session-1.0.27.dist-info/LICENSE,sha256=I3ZYTXAjbIly6bm6J-TvFTuuHwTKws4h89QaY5c5HiY,1067
|
4
|
-
boto3_refresh_session-1.0.27.dist-info/METADATA,sha256=_LUqRlicawI1x1pmL6gZ9vt7-ui-A23iUxKOJptiSmU,5308
|
5
|
-
boto3_refresh_session-1.0.27.dist-info/NOTICE,sha256=1s8r33qbl1z0YvPB942iWgvbkP94P_e8AnROr1qXXuw,939
|
6
|
-
boto3_refresh_session-1.0.27.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
7
|
-
boto3_refresh_session-1.0.27.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|