module documentation

Asynchronous renewable file-backed bearer.

This module provides an asynchronous variant of the renewable file-backed bearer which uses a ThrottledTokenCache and runs a background refresh task. The implementation exposes two primary classes:

Example

Create an asynchronous renewable bearer from a named network bearer:

async_bearer = AsynchronousRenewableFileCacheBearer(network_bearer)
token = await async_bearer.receiver().fetch()
Class AsynchronousRenewableFileCacheBearer Asynchronous bearer that refreshes tokens into a file-backed cache.
Class AsynchronousRenewableFileCacheReceiver Receiver that requests asynchronous renewals when needed.
Constant VERY_LONG_TIMEOUT A very long timeout used when a token has no expiration.
Type Variable T Undocumented
Variable log Undocumented
VERY_LONG_TIMEOUT = (source)

A very long timeout used when a token has no expiration.

This constant is used as an effectively infinite timeout value when calculating retry intervals for tokens that carry no expiration time.

Value
timedelta(days=(365 * 10))

Undocumented

Value
TypeVar('T')

Undocumented