Skip to main content

system.kanoa.quality.config.getAttributes

Requires kanoaQDS license

Description

Returns attributes based on the passed parameters.

Syntax

getAttributes(paramsDict)

Parameters:
  • paramsDict (dict): Dictionary

  • Returns:
  • data (pyDataset): Dataset containing attribute information.
  • Dictionary

    ParameterTypeRequiredNotes
    pathstrNoe.g. 'somePath'
    enabledboolNoe.g. True
    attributeNamestrNoe.g. 'some attribute name'
    attributeIdintNoe.g. 1
    parentIdintNoe.g. 6

    Code Examples

    # Usage example
    attributes_params = {'path': 'somePath', 'enabled': True, 'attributeName': 'some attribute name', 'attributeId': 1, 'parentId': 6}
    attributes_data = system.kanoa.quality.config.getAttributes(paramsDict=attributes_params)

    # Accessing data in the dataset
    for row in attributes_data:
    print(f"Attribute ID: {row['attributeId']}, Name: {row['attributeName']}, Enabled: {row['enabled']}")