Skip to main content

user_config

User configuration persistence for Datalayer Core.

Stores user preferences (IAM URL, Runtimes URL, etc.) in ~/.datalayer/config.json.

def get_config() -> Dict[str, Any]

Get the full user configuration.

Returns

  • dict

    The configuration dictionary with all stored values.

def get_iam_url() -> Optional[str]

Get the configured IAM URL.

Returns

  • Optional[str]

    The IAM URL from the config file, or None if not explicitly set.

def get_runtimes_url() -> Optional[str]

Get the configured Runtimes URL.

Returns

  • Optional[str]

    The Runtimes URL from the config file, or None if not explicitly set.

def set_iam_url(url: str) -> None

Set the IAM URL in the config file.

Parameters

  • url : str

    The IAM URL to store.

def set_runtimes_url(url: str) -> None

Set the Runtimes URL in the config file.

Parameters

  • url : str

    The Runtimes URL to store.

def set_config(iam_url: Optional[str] = None, runtimes_url: Optional[str] = None) -> None

Set multiple config values at once.

Parameters

  • iam_url : Optional[str]

    The IAM URL to store.

  • runtimes_url : Optional[str]

    The Runtimes URL to store.