Skip to content

Custom setting

CustomSetting #

CustomSetting(key: str, value: str)

Bases: RapidataSetting

Set a custom setting with the given key and value. Use this to enable features that do not have a dedicated method (yet)

Parameters:

Name Type Description Default
key str

The key for the custom setting.

required
value str

The value for the custom setting.

required
Source code in src/rapidata/rapidata_client/settings/custom_setting.py
def __init__(self, key: str, value: str):
    if not isinstance(key, str):
        raise ValueError("The key must be a string.")

    super().__init__(key=key, value=value)