module documentation

File-backed bearer helpers.

This module adapts ThrottledTokenCache into the Bearer/Receiver abstractions used by the SDK. It provides lightweight types intended for simple file-backed credential lookups.

Types

Example

Create a bearer that reads credentials from the default credentials file and caches them for five minutes:

from nebius.aio.token.file_cache.file_bearer import PureFileCacheBearer
from nebius.sdk import SDK

bearer = PureFileCacheBearer('my-service')
sdk = SDK(credentials=bearer)
Class PureFileCacheBearer Bearer that exposes a PureFileCacheReceiver for a named token.
Class PureFileCacheReceiver Receiver that reads tokens from a ThrottledTokenCache.
Variable log Undocumented

Undocumented