Skip to content

Exporter

Exporter

Bases: ABC

Abstract class to export engines and its components to different formats.

related

Functions

__repr__

__repr__() -> str

Return code to construct the exporter in Python.

Returns:

Type Description
str

code to construct the exporter in Python

__str__

__str__() -> str

Return the class name of the exporter.

Returns:

Type Description
str

class name of the exporter

to_file

to_file(path: str | Path, instance: Any) -> None

Write the string representation of the instance into the file.

Parameters:

Name Type Description Default
path str | Path

file path to export the instance.

required
instance Any

a fuzzylite object.

required

to_string abstractmethod

to_string(instance: Any) -> str

Return string representation of the instance.

Parameters:

Name Type Description Default
instance Any

a fuzzylite object

required

Returns:

Type Description
str

string representation of the object