boto3-refresh-session 0.0.23__tar.gz → 0.0.25__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.23
3
+ Version: 0.0.25
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
@@ -27,6 +27,10 @@ Description-Content-Type: text/markdown
27
27
  [![PyPI Download](https://img.shields.io/pypi/v/boto3-refresh-session?logo=pypis.svg)](https://pypi.org/project/boto3-refresh-session/)
28
28
  [![Workflow](https://img.shields.io/github/actions/workflow/status/michaelthomasletts/boto3-refresh-session/push_pullrequest.yml?logo=github)](https://github.com/michaelthomasletts/boto3-refresh-session/actions/workflows/push_pullrequest.yml)
29
29
  ![Python Version](https://img.shields.io/pypi/pyversions/boto3-refresh-session?style=pypi)
30
+ ![GitHub Downloads (all assets, all releases)](https://img.shields.io/github/downloads/michaelthomasletts/boto3-refresh-session/total?logo=github)
31
+ ![GitHub last commit](https://img.shields.io/github/last-commit/michaelthomasletts/boto3-refresh-session?logo=github)
32
+ ![GitHub Repo stars](https://img.shields.io/github/stars/michaelthomasletts/boto3-refresh-session?logo=github)
33
+ ![GitHub forks](https://img.shields.io/github/forks/michaelthomasletts/boto3-refresh-session?logo=github)
30
34
 
31
35
  ![BRS Image](https://raw.githubusercontent.com/michaelthomasletts/boto3-refresh-session/refs/heads/main/doc/brs.png)
32
36
 
@@ -2,6 +2,10 @@
2
2
  [![PyPI Download](https://img.shields.io/pypi/v/boto3-refresh-session?logo=pypis.svg)](https://pypi.org/project/boto3-refresh-session/)
3
3
  [![Workflow](https://img.shields.io/github/actions/workflow/status/michaelthomasletts/boto3-refresh-session/push_pullrequest.yml?logo=github)](https://github.com/michaelthomasletts/boto3-refresh-session/actions/workflows/push_pullrequest.yml)
4
4
  ![Python Version](https://img.shields.io/pypi/pyversions/boto3-refresh-session?style=pypi)
5
+ ![GitHub Downloads (all assets, all releases)](https://img.shields.io/github/downloads/michaelthomasletts/boto3-refresh-session/total?logo=github)
6
+ ![GitHub last commit](https://img.shields.io/github/last-commit/michaelthomasletts/boto3-refresh-session?logo=github)
7
+ ![GitHub Repo stars](https://img.shields.io/github/stars/michaelthomasletts/boto3-refresh-session?logo=github)
8
+ ![GitHub forks](https://img.shields.io/github/forks/michaelthomasletts/boto3-refresh-session?logo=github)
5
9
 
6
10
  ![BRS Image](https://raw.githubusercontent.com/michaelthomasletts/boto3-refresh-session/refs/heads/main/doc/brs.png)
7
11
 
@@ -21,7 +21,7 @@ __all__ = ["AutoRefreshableSession"]
21
21
  from typing import Type
22
22
 
23
23
  from attrs import define, field
24
- from attrs.validators import instance_of, le, optional
24
+ from attrs.validators import ge, instance_of, optional
25
25
  from boto3 import Session
26
26
  from botocore.credentials import (
27
27
  DeferredRefreshableCredentials,
@@ -51,7 +51,8 @@ class AutoRefreshableSession:
51
51
  they are explicitly needed. If ``False`` then temporary credentials refresh
52
52
  immediately upon expiration. Default is ``True``.
53
53
  ttl : int, optional
54
- Number of seconds until temporary credentials expire, default 900.
54
+ Number of seconds until temporary credentials expire. Must be greater than or
55
+ equal to 900 seconds. Default is 900.
55
56
  session_kwargs : dict, optional
56
57
  Optional keyword arguments for :class:`boto3.session.Session`.
57
58
  client_kwargs : dict, optional
@@ -89,7 +90,7 @@ class AutoRefreshableSession:
89
90
  session_name: str = field(validator=instance_of(str))
90
91
  defer_refresh: bool = field(default=True, validator=instance_of(bool))
91
92
  ttl: int = field(
92
- default=900, validator=optional([instance_of(int), le(900)])
93
+ default=900, validator=optional([instance_of(int), ge(900)])
93
94
  )
94
95
  session_kwargs: dict = field(
95
96
  default={}, validator=optional(instance_of(dict))
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "boto3-refresh-session"
3
- version = "0.0.23"
3
+ version = "0.0.25"
4
4
  description = "A simple Python package for refreshing boto3 sessions automatically."
5
5
  authors = [
6
6
  {name = "Mike Letts",email = "michaelthomasletts@gmail.com"}