mirror of
https://github.com/vinta/awesome-python.git
synced 2026-05-07 14:17:36 -05:00
[PR #2906] [CLOSED] Add boto3-refresh-session #13570
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/vinta/awesome-python/pull/2906
Author: @michaelthomasletts
Created: 2/9/2026
Status: ❌ Closed
Base:
master← Head:boto3-refresh-session📝 Commits (2)
6b5bac6Add boto3-refresh-session to DevOps Tools > Cloud Providers00e35efUpdate README.md📊 Changes
1 file changed (+1 additions, -0 deletions)
View changed files
📝
README.md(+1 -0)📄 Description
Project
boto3-refresh-session (GitHub)
Official Documentation
PyPI
Checklist
Add project-name* [project-name](url) - Description ending with period.Why This Project Is Awesome
Which criterion does it meet? (pick one)
Recognition
Featured in TL;DR Sec
Featured in CloudSec List
What is it?
boto3-refresh-session is a simple Python package with a drop-in replacement for boto3.Session named RefreshableSession. It automatically refreshes temporary AWS credentials, caches clients, and supports MFA token providers. It supports automatic temporary AWS security credential refresh for STS, IOT Core, and custom credential callables. And it is thoroughly tested, regularly updated, comprehensively documentated, and published to PyPI.
Why does it matter? And how does it differ from alternatives?
Although boto3 already supports automatic temporary credential refresh via role assumption as configured in
~/.aws/config, there are scenarios and edge cases where that is insufficient. Below are just a few examples:boto3-refresh-session exists to fill those gaps (and others not listed) while maintaining full compatibility with boto3.
Although there are other open source tools available which address automatic temporary AWS credential refresh, boto3-refresh-session is ergonomically designed to feel like an extension of boto3 (with a few extra parameters) rather than a separate library with a completely unfamiliar API. Using boto3-refresh-session, you can initialize service clients, resources, collections, etc. from
RefreshableSessionexactly like you would in boto3. More, the available alternatives to boto3-refresh-session do not support the breadth of features that boto3-refresh-session does, such as client caching, MFA token provider support, or IoT Core X.509 credential refresh, among others. Even if someone doesn't need boto3-refresh-session's core feature (automatic temporary AWS credential refresh), the client caching feature will almost certainly still be useful to them.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.