fmeobjects.FMEFeature.getAttributes

FMEFeature.getAttributes(attrNames)

Get values for multiple named attributes.

For details on retrieving attribute values, see getAttribute. If an attribute cannot be retrieved, a Python UserWarning is issued and that attribute is skipped.

Parameters:

attrNames (list[str]) – The names of attributes to retrieve.

Return type:

dict[str, bool | int | float | str | bytes | bytearray | list] | None

Returns:

A dictionary containing found attribute name/value pairs, or None if no requested attributes were found.

Warning

UserWarning is issued for each attribute that raised an exception when being retrieved.