boto3-refresh-session 0.0.18__tar.gz → 0.0.20__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.18
3
+ Version: 0.0.20
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
@@ -73,7 +73,10 @@ To use this package, your machine must be configured with AWS
73
73
  credentials. To learn more about how `boto3` searches for credentials on a
74
74
  machine, check [this documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/guide/credentials.html).
75
75
 
76
- ```
76
+ ```python
77
+ from boto3_refresh_session import AutoRefreshableSession
78
+
79
+
77
80
  sess = AutoRefreshableSession(
78
81
  region="<your-region>",
79
82
  role_arn="<your-role-arn>",
@@ -82,6 +85,12 @@ sess = AutoRefreshableSession(
82
85
  s3_client = sess.session.client(service_name="s3")
83
86
  ```
84
87
 
88
+ ### Installation
89
+
90
+ ```bash
91
+ pip install boto3-refresh-session
92
+ ```
93
+
85
94
  ### Authors
86
95
 
87
96
  - [Michael Letts](https://michaelthomasletts.github.io/)
@@ -48,7 +48,10 @@ To use this package, your machine must be configured with AWS
48
48
  credentials. To learn more about how `boto3` searches for credentials on a
49
49
  machine, check [this documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/guide/credentials.html).
50
50
 
51
- ```
51
+ ```python
52
+ from boto3_refresh_session import AutoRefreshableSession
53
+
54
+
52
55
  sess = AutoRefreshableSession(
53
56
  region="<your-region>",
54
57
  role_arn="<your-role-arn>",
@@ -57,6 +60,12 @@ sess = AutoRefreshableSession(
57
60
  s3_client = sess.session.client(service_name="s3")
58
61
  ```
59
62
 
63
+ ### Installation
64
+
65
+ ```bash
66
+ pip install boto3-refresh-session
67
+ ```
68
+
60
69
  ### Authors
61
70
 
62
71
  - [Michael Letts](https://michaelthomasletts.github.io/)
@@ -10,10 +10,11 @@ object.
10
10
  objects! There are optional ``session_kwargs`` and ``client_kwargs``
11
11
  parameters available for passing hard-coded account credentials, which
12
12
  should work; however, that cannot be guaranteed! In any case, the ``boto3``
13
- documentation strongly urges against passing hard-coded account credentials
13
+ documentation generally recommends against passing hard-coded account credentials
14
14
  as parameters; it is for that reason the documentation below, and everywhere
15
15
  else, only mentions ``~/.aws/config`` and ``~/.aws/credentials`` for
16
- authorization.
16
+ authorization. Since the ``session_kwargs`` and ``client_kwargs`` parameters
17
+ were not tested, you will need to use those parameters at your own discretion.
17
18
  """
18
19
  __all__ = ["AutoRefreshableSession"]
19
20
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "boto3-refresh-session"
3
- version = "0.0.18"
3
+ version = "0.0.20"
4
4
  description = "A simple Python package for refreshing boto3 sessions automatically."
5
5
  authors = [
6
6
  {name = "Mike Letts",email = "michaelthomasletts@gmail.com"}