compass.utilities.io#

COMPASS I/O utilities

A lot of this is taken directly from NLR’s GAPs repo: NatLabRockies/gaps

Module attributes

ConfigType(*values)

An enumeration of the parseable config types

Functions

load_config(config_filepath[, resolve_paths])

Load a config file

load_local_docs(fps, **kwargs)

Load local documents into elm document instances

resolve_all_paths(container, base_dir)

Perform a deep string replacement and path resolve in container

resolve_path(path, base_dir)

Resolve a file path represented by the input string.

Classes

ConfigType(*values)

An enumeration of the parseable config types

Handler()

ABC for configuration file handler

JSON5Handler()

JSON5 config file handler

JSONHandler()

JSON config file handler

TOMLHandler()

TOML config file handler

YAMLHandler()

YAML config file handler