Skip to content

Kathara.parser.netkit.DepParser

Tommaso Caiazzi edited this page Jul 21, 2023 · 1 revision

module Kathara.parser.netkit.DepParser


class DepParser

Class responsible for parsing the lab.dep file.


method DepParser.parse

parse(path: str) → Optional[List[str]]

Parse the lab.dep file and return a List of string containing the names of the device ordered considering the dependencies.

Args:

  • path (str): The path to the lab.dep file.

Returns:

  • Optional[List[str]]: A List of string containing the names of the device ordered considering the dependencies.

Raises:

  • IOError: If there is an error while opening lab.dep file.
  • SyntaxError: If there is a syntax error in lab.dep file.
  • MachineDependencyError: If there is a Machines dependency loop in lab.dep file.

This file was automatically generated via lazydocs.

Clone this wiki locally