Quick Start

Installation

flync_converter is included in the main flync package. For installation instructions, see Installation Guide.

Python API

from flync_converter import convert
from flync_converter import registry
import logging

# set your desired logging level
logging.basicConfig(level=logging.DEBUG)

# load plugins to get available converters
registry.load_plugins()


# default: convert from FLYNC
convert(
    source="path/to/flync_source",
    destination="path/to/output",
    destination_type="json",
)

# convert FLYNC to DBC
convert(
    source="path/to/flync_source",
    destination="path/to/dbc_output",
    destination_type="dbc",
)

# convert from YAML to FLYNC
convert(
    source="path/to/yaml_folder",
    destination="path/to/flync_output",
    source_type="yaml",
)

Next Steps