> ## 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.

# python_generator class

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

## Summary

Generates .py file with specifications for loaded plugin(s).

available inputs: `dll_source_path` (string), `output_path` (string), `load_symbol` (string) (optional), `library_key` (string) (optional)

available outputs:

## Example

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

op = python_generator(dll_source_path=my_dll_source_path,output_path=my_output_path,load_symbol=my_load_symbol,library_key=my_library_key)
```

## Class Information

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

## Inputs

### dll\_source\_path

**Type:** *LinkableInput*

### output\_path

**Type:** *LinkableInput*

### load\_symbol

**Type:** *LinkableInput*

### library\_key

**Type:** *LinkableInput*

## Outputs

## Constructors

#### Constructor

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

#### Constructor

```python theme={null}
python_generator(dll_source_path, output_path, load_symbol, library_key, config)
```

**Parameters:**

* `dll_source_path` (*object*)
* `output_path` (*object*)
* `load_symbol` (*object*)
* `library_key` (*object*)
* `config` (*OperatorConfig*)

#### Constructor

```python theme={null}
python_generator(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
```
