bsb.config.parsers package#

Submodules#

bsb.config.parsers.json module#

JSON parsing module. Built on top of the Python json module. Adds JSON imports and references.

class bsb.config.parsers.json.JsonParser[source]#

Parser plugin class to parse JSON configuration files.

class bsb.config.parsers.json.parsed_dict[source]#
merge(other)[source]#

Recursively merge the values of another dictionary into us

rev_merge(other)[source]#

Recursively merge ourself onto another dictionary

class bsb.config.parsers.json.parsed_list(iterable=(), /)[source]#

bsb.config.parsers.yaml module#

class bsb.config.parsers.yaml.YAMLParser[source]#

Parser plugin class to parse YAML configuration files.

parse(content, path=None)[source]#

Parse the YAML

Parameters:
  • content (str) – File contents

  • path (str) – Path the content came from

Module contents#

class bsb.config.parsers.Parser[source]#