boto3-refresh-session 0.0.8__tar.gz → 0.0.10__tar.gz
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-0.0.8 → boto3_refresh_session-0.0.10}/PKG-INFO +9 -4
- {boto3_refresh_session-0.0.8 → boto3_refresh_session-0.0.10}/README.md +8 -3
- {boto3_refresh_session-0.0.8 → boto3_refresh_session-0.0.10}/boto3_refresh_session/session.py +3 -3
- {boto3_refresh_session-0.0.8 → boto3_refresh_session-0.0.10}/pyproject.toml +1 -1
- {boto3_refresh_session-0.0.8 → boto3_refresh_session-0.0.10}/LICENSE +0 -0
- {boto3_refresh_session-0.0.8 → boto3_refresh_session-0.0.10}/boto3_refresh_session/__init__.py +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.10
|
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,7 +61,10 @@ 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
|
|
@@ -8,7 +8,7 @@
|
|
8
8
|
A simple Python package for refreshing boto3 sessions automatically.
|
9
9
|
|
10
10
|
## Features
|
11
|
-
- `boto3_refresh_session.AutoRefreshableSession` method for generating an automatically refreshing `
|
11
|
+
- `boto3_refresh_session.AutoRefreshableSession` method for generating an automatically refreshing `boto3.Session` object.
|
12
12
|
|
13
13
|
## Installation
|
14
14
|
|
@@ -18,7 +18,9 @@ To install the package using `pip`:
|
|
18
18
|
$ pip install boto3-refresh-session
|
19
19
|
```
|
20
20
|
|
21
|
-
|
21
|
+
**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!**
|
22
|
+
|
23
|
+
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.
|
22
24
|
|
23
25
|
## Directory
|
24
26
|
|
@@ -35,7 +37,10 @@ Here's how to initialize the `boto3.Client.S3` object:
|
|
35
37
|
```python
|
36
38
|
from boto3_refresh_session import AutoRefreshableSession
|
37
39
|
|
38
|
-
|
40
|
+
|
41
|
+
session = AutoRefreshableSession(
|
42
|
+
region="us-east-1", role_arn="<your-arn>", session_name="test"
|
43
|
+
)
|
39
44
|
s3_client = session.session.client(service_name="s3")
|
40
45
|
```
|
41
46
|
|
{boto3_refresh_session-0.0.8 → boto3_refresh_session-0.0.10}/boto3_refresh_session/session.py
RENAMED
@@ -22,7 +22,7 @@ class AutoRefreshableSession:
|
|
22
22
|
To use this class, you must have `~/.aws/config` or `~/.aws/credentials`
|
23
23
|
on your machine.
|
24
24
|
|
25
|
-
|
25
|
+
Parameters
|
26
26
|
----------
|
27
27
|
region : str
|
28
28
|
AWS region name.
|
@@ -37,8 +37,8 @@ class AutoRefreshableSession:
|
|
37
37
|
client_kwargs : dict, optional
|
38
38
|
Optional keyword arguments for `boto3.Session.client`.
|
39
39
|
|
40
|
-
|
41
|
-
|
40
|
+
Attributes
|
41
|
+
----------
|
42
42
|
session
|
43
43
|
Returns a boto3 Session object with credentials which refresh
|
44
44
|
automatically.
|
File without changes
|
{boto3_refresh_session-0.0.8 → boto3_refresh_session-0.0.10}/boto3_refresh_session/__init__.py
RENAMED
File without changes
|