Skip to main content

Config

from lium.sdk import Config

Defined in lium.sdk.config.

Config(
api_key: str,
base_url: str = 'https://lium.io/api',
base_pay_url: str = 'https://pay-api.lium.io',
ssh_key_path: Optional[pathlib.Path] = None
)

Fields​

NameTypeDefault
api_keystr
base_urlstr'https://lium.io/api'
base_pay_urlstr'https://pay-api.lium.io'
ssh_key_pathOptional[pathlib.Path]None

Properties​

NameTypeDescription
ssh_public_keysList[str]Get SSH public keys.

Methods​

MethodDescription
loadLoad config from env/file with smart defaults.

load​

def load(cls) -> lium.sdk.config.Config:

Load config from env/file with smart defaults.