boto3-refresh-session 0.0.8__tar.gz → 0.0.10__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: boto3-refresh-session
3
- Version: 0.0.8
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 `boto.Session` object.
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
- Refer to the [boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/guide/credentials.html) for configuring credentials on your machine.
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
- session = AutoRefreshableSession(region="us-east-1", role_arn="<your-arn>", session_name="test")
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 `boto.Session` object.
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
- Refer to the [boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/guide/credentials.html) for configuring credentials on your machine.
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
- session = AutoRefreshableSession(region="us-east-1", role_arn="<your-arn>", session_name="test")
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
 
@@ -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
- Attributes
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
- Other Attributes
41
- ----------------
40
+ Attributes
41
+ ----------
42
42
  session
43
43
  Returns a boto3 Session object with credentials which refresh
44
44
  automatically.
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "boto3-refresh-session"
3
- version = "0.0.8"
3
+ version = "0.0.10"
4
4
  description = "A simple Python package for refreshing boto3 sessions automatically."
5
5
  authors = [
6
6
  {name = "Mike Letts",email = "michaelthomasletts@gmail.com"}