> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ds_get_attribute class

**Namespace:** [Ans.DataProcessing.operators.utility](https://developer.synopsys.com/docs/dpf/dpf-mechanical/api/Ans.DataProcessing/operators/utility)

## Summary

A DataSources in pin 0 and a property name (string) in pin 1 are expected in input. An index refering to the property can also be provided.

available inputs: `data_sources` (DataSources), `property_name` (string), `property_index` (Int32) (optional), `property_key` (string) (optional), `property_result_key` (string) (optional)

available outputs: `property` (string ,Int32)

## Example

```python theme={null}
op = ds_get_attribute()

op = ds_get_attribute(data_sources=my_data_sources,property_name=my_property_name,property_index=my_property_index,property_key=my_property_key,property_result_key=my_property_result_key)
```

## Class Information

| Property | Value |
| - | - |
| Namespace | `Ans.DataProcessing.operators.utility` |
| Assembly | `Ans_Dpf_Native_dll_cs` |
| Base Class | `Ans.DataProcessing.internal_objects.BaseOperator` |

## Inputs

### data\_sources

**Type:** *LinkableInput*

### property\_name

Accepted inputs are: 'file\_path' (returns string), 'result\_file\_name' (returns string), 'domain\_file\_path' (returns string), 'domain\_result\_file\_name' (returns string), 'num\_keys' (returns int), num\_result\_key (returns int), num\_file\_path (returns int), 'num\_result\_file\_path' (returns int), 'key\_by\_index' (returns string), 'result\_key\_by\_index' (returns string), 'path\_by\_index' (returns string), 'path\_key\_by\_index' (returns string).

**Type:** *LinkableInput*

### property\_index

Index for the property. Must be set for 'domain\_file\_path', 'domain\_result\_file\_name' 'key\_by\_index', 'result\_key\_by\_index', 'path\_by\_index' and 'path\_key\_by\_index' properties.

**Type:** *LinkableInput*

### property\_key

Key to look for. Must be set for 'file\_path' and 'domain\_file\_path' properties.

**Type:** *LinkableInput*

### property\_result\_key

Result key to look for. Can be used for 'file\_path', 'result\_file\_name', 'domain\_file\_path' and 'domain\_result\_file\_name'.

**Type:** *LinkableInput*

## Outputs

### property

Property value.

**Type:** *LinkableOutput*

## Constructors

#### Constructor

```python theme={null}
ds_get_attribute()
```

#### Constructor

```python theme={null}
ds_get_attribute(data_sources, property_name, property_index, property_key, property_result_key, config)
```

**Parameters:**

* `data_sources` (*object*)
* `property_name` (*object*)
* `property_index` (*object*)
* `property_key` (*object*)
* `property_result_key` (*object*)
* `config` (*OperatorConfig*)

#### Constructor

```python theme={null}
ds_get_attribute(config)
```

**Parameters:**

* `config` (*OperatorConfig*)

## Methods

## Properties

#### inputs

**Type:** *InputSpec*

```python theme={null}
# Get or set the property
value = obj.inputs
obj.inputs = new_value
```

#### outputs

**Type:** *OutputSpec*

```python theme={null}
# Get or set the property
value = obj.outputs
obj.outputs = new_value
```

#### defaultConfig

**Type:** *Config*

```python theme={null}
# Get the property (read-only)
value = obj.defaultConfig
```
