abacusai.api_class.refresh — AbacusAI documentation

# abacusai.api_class.refresh

## Classes

`ApiClass` | Helper class that provides a standard way to create an ABC using
`_ApiClassFactory` | Helper class that provides a standard way to create an ABC using
`FeatureGroupExportConfig` | An abstract class for feature group exports.
`FileConnectorExportConfig` | File connector export config for feature groups
`DatabaseConnectorExportConfig` | Database connector export config for feature groups
`_FeatureGroupExportConfigFactory` | Helper class that provides a standard way to create an ABC using

## Module Contents

class abacusai.api_class.refresh.ApiClass

  Bases: `abc.ABC`

  Helper class that provides a standard way to create an ABC using inheritance.

  _upper_snake_case_keys: bool
  _support_kwargs: bool
  __post_init__()
  classmethod _get_builder()
  __str__()

    Return str(self).

  _repr_html_()
  __getitem__(item)
    Parameters:

      item (str)

  __setitem__(item, value)
    Parameters:

      - item (str)

      - value (Any)

  _unset_item(item)
    Parameters:

      item (str)

  get(item, default=None)
    Parameters:

      - item (str)

      - default (Any)

  pop(item, default=NotImplemented)
    Parameters:

      - item (str)

      - default (Any)

  to_dict()

    Standardizes converting an ApiClass to dictionary. Keys of response dictionary are converted to camel case. This also validates the fields ( type, value, etc ) received in the dictionary.

  classmethod from_dict(input_dict)
    Parameters:

      input_dict (dict)

class abacusai.api_class.refresh._ApiClassFactory

  Bases: `abc.ABC`

  Helper class that provides a standard way to create an ABC using inheritance.

  config_abstract_class = None
  config_class_key = None
  config_class_map
  classmethod from_dict(config)
    Parameters:

      config (dict)

    Return type:

      ApiClass

class abacusai.api_class.refresh.FeatureGroupExportConfig

  Bases: `abacusai.api_class.abstract.ApiClass`

  An abstract class for feature group exports.

  connector_type: abacusai.api_class.enums.ConnectorType
  classmethod _get_builder()

class abacusai.api_class.refresh.FileConnectorExportConfig

  Bases: `FeatureGroupExportConfig`

  File connector export config for feature groups

  Parameters:

    - location (str) – The location to export the feature group to

    - export_file_format (str) – The file format to export the feature group to

  location: str
  export_file_format: str
  __post_init__()
  to_dict()

    Standardizes converting an ApiClass to dictionary. Keys of response dictionary are converted to camel case. This also validates the fields ( type, value, etc ) received in the dictionary.

class abacusai.api_class.refresh.DatabaseConnectorExportConfig

  Bases: `FeatureGroupExportConfig`

  Database connector export config for feature groups

  Parameters:

    - database_connector_id (str) – The ID of the database connector to export the feature group to

    - mode (str) – The mode to export the feature group in

    - object_name (str) – The name of the object to export the feature group to

    - id_column (str) – The name of the ID column

    - additional_id_columns (List[str]) – Additional ID columns

    - data_columns (Dict[str, str]) – The data columns to export the feature group to

  database_connector_id: str
  mode: str
  object_name: str
  id_column: str
  additional_id_columns: List[str]
  data_columns: Dict[str, str]
  __post_init__()
  to_dict()

    Standardizes converting an ApiClass to dictionary. Keys of response dictionary are converted to camel case. This also validates the fields ( type, value, etc ) received in the dictionary.

class abacusai.api_class.refresh._FeatureGroupExportConfigFactory

  Bases: `abacusai.api_class.abstract._ApiClassFactory`

  Helper class that provides a standard way to create an ABC using inheritance.

  config_abstract_class
  config_class_key = 'connector_type'
  config_class_map