boto3-refresh-session 0.0.7__py3-none-any.whl → 0.0.9__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- {boto3_refresh_session-0.0.7.dist-info → boto3_refresh_session-0.0.9.dist-info}/METADATA +10 -5
- boto3_refresh_session-0.0.9.dist-info/RECORD +6 -0
- boto3_refresh_session-0.0.7.dist-info/RECORD +0 -6
- {boto3_refresh_session-0.0.7.dist-info → boto3_refresh_session-0.0.9.dist-info}/LICENSE +0 -0
- {boto3_refresh_session-0.0.7.dist-info → boto3_refresh_session-0.0.9.dist-info}/WHEEL +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: boto3-refresh-session
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.9
|
4
4
|
Summary: A simple Python package for refreshing boto3 sessions automatically.
|
5
5
|
Home-page: https://github.com/michaelthomasletts/boto3-refresh-session
|
6
6
|
License: MIT
|
@@ -32,7 +32,7 @@ Description-Content-Type: text/markdown
|
|
32
32
|
A simple Python package for refreshing boto3 sessions automatically.
|
33
33
|
|
34
34
|
## Features
|
35
|
-
- `boto3_refresh_session.AutoRefreshableSession` method for generating an automatically refreshing `
|
35
|
+
- `boto3_refresh_session.AutoRefreshableSession` method for generating an automatically refreshing `boto3.Session` object.
|
36
36
|
|
37
37
|
## Installation
|
38
38
|
|
@@ -42,7 +42,9 @@ To install the package using `pip`:
|
|
42
42
|
$ pip install boto3-refresh-session
|
43
43
|
```
|
44
44
|
|
45
|
-
|
45
|
+
**This package assumes that you have `~/.aws/config` or `~/.aws/credentials` files or `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` environment variables configured on your machine!**
|
46
|
+
|
47
|
+
Refer to the [boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/guide/credentials.html) for additional details about configuring those credentials on your machine.
|
46
48
|
|
47
49
|
## Directory
|
48
50
|
|
@@ -59,10 +61,13 @@ Here's how to initialize the `boto3.Client.S3` object:
|
|
59
61
|
```python
|
60
62
|
from boto3_refresh_session import AutoRefreshableSession
|
61
63
|
|
62
|
-
|
64
|
+
|
65
|
+
session = AutoRefreshableSession(
|
66
|
+
region="us-east-1", role_arn="<your-arn>", session_name="test"
|
67
|
+
)
|
63
68
|
s3_client = session.session.client(service_name="s3")
|
64
69
|
```
|
65
70
|
|
66
71
|
## Contributing
|
67
72
|
|
68
|
-
Refer to [this document](https://github.com/michaelthomasletts/boto3-refresh-session/blob/main/docs/contributing.md) for instructions.
|
73
|
+
Refer to [this document](https://github.com/michaelthomasletts/boto3-refresh-session/blob/main/docs/contributing.md) for step by step instructions.
|
@@ -0,0 +1,6 @@
|
|
1
|
+
boto3_refresh_session/__init__.py,sha256=OMY8el4qROyEvo0vr1Kv8rtFU7g3xnjHuBss54XRTEA,135
|
2
|
+
boto3_refresh_session/session.py,sha256=D-qiFGdy52zzkVnI94Z5hjk3kmb-UkR2fCM77caC3sg,3840
|
3
|
+
boto3_refresh_session-0.0.9.dist-info/LICENSE,sha256=I3ZYTXAjbIly6bm6J-TvFTuuHwTKws4h89QaY5c5HiY,1067
|
4
|
+
boto3_refresh_session-0.0.9.dist-info/METADATA,sha256=o5AsobuyEq5yhb7G_d9jEjViktyporBq5-Zq4ny-WnY,2665
|
5
|
+
boto3_refresh_session-0.0.9.dist-info/WHEEL,sha256=RaoafKOydTQ7I_I3JTrPCg6kUmTgtm4BornzOqyEfJ8,88
|
6
|
+
boto3_refresh_session-0.0.9.dist-info/RECORD,,
|
@@ -1,6 +0,0 @@
|
|
1
|
-
boto3_refresh_session/__init__.py,sha256=OMY8el4qROyEvo0vr1Kv8rtFU7g3xnjHuBss54XRTEA,135
|
2
|
-
boto3_refresh_session/session.py,sha256=D-qiFGdy52zzkVnI94Z5hjk3kmb-UkR2fCM77caC3sg,3840
|
3
|
-
boto3_refresh_session-0.0.7.dist-info/LICENSE,sha256=I3ZYTXAjbIly6bm6J-TvFTuuHwTKws4h89QaY5c5HiY,1067
|
4
|
-
boto3_refresh_session-0.0.7.dist-info/METADATA,sha256=tLeH1z-kKStUq9m8GWHdT8OJ0S2vnvGq0kv0niB8WW8,2425
|
5
|
-
boto3_refresh_session-0.0.7.dist-info/WHEEL,sha256=RaoafKOydTQ7I_I3JTrPCg6kUmTgtm4BornzOqyEfJ8,88
|
6
|
-
boto3_refresh_session-0.0.7.dist-info/RECORD,,
|
File without changes
|
File without changes
|