Skip to main content

system.kanoa.quality.config.getAttributes

This function requires KanoaQDS module

Description

Returns attributes based on the passed parameters in KanoaQDS.

Syntax

getAttributes(paramsDict)
  • Parameters
      dict paramsDict - Dictionary, e.g., {'path': 'somePath', 'enabled': True, 'attributeName': 'some attribute name', {'attributeId': 1, 'parentId': 6}
  • Returns
      pyDataset data - Dataset containing attribute information.
  • 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']}")