configuration_data()

Creates an empty configuration object. You should add your configuration with the cfg_data method calls and finally use it in a call to configure_file().

Signature

# Creates an empty configuration object
cfg_data configuration_data(
  dict[str | bool | int] [data],   # Optional dictionary to specify an initial data set
)

Arguments

The function configuration_data() accepts the following positional arguments:

Name Type Description Tags
data dict[str | bool | int]

Optional dictionary to specify an initial data set. If provided, each key/value pair is added into the cfg_data object as if the cfg_data.set() method was called for each of them.

(since 0.49.0)

[optional]

The results of the search are