geolib.models.parsers

Classes

BaseParser()

BaseParserProvider()

Basic class for parser providers.

class geolib.models.parsers.BaseParser
can_parse(filename)

Verifies if a file or directory can be parsed with this instance.

Parameters:

filename (FilePath) – File path to the file or directory to parse.

Returns:

True if it can be parsed, False otherwise.

Return type:

bool

abstract parse(filename)
Parameters:

filename (FilePath) –

abstract property suffix_list: List[str]
class geolib.models.parsers.BaseParserProvider

Basic class for parser providers.

abstract property input_parsers: BaseParser
abstract property output_parsers: BaseParser
parse(filename)
Parameters:

filename (FilePath) –

Return type:

BaseModelStructure

abstract property parser_name: str