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
PureFileCacheReceiver-- Anebius.aio.token.token.Receiver- implementation that reads a token from a
ThrottledTokenCache. It does not perform retries; the cache layer implements throttling and robustness.
PureFileCacheBearer-- Anebius.aio.token.token.Bearerthat- constructs a
ThrottledTokenCachefor a named credential and returns aPureFileCacheReceiverwhen requested.
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 | |
Bearer that exposes a PureFileCacheReceiver for a named token. |
| Class | |
Receiver that reads tokens from a ThrottledTokenCache. |
| Variable | log |
Undocumented |