datumaro.components.config#

Classes

Config([config, fallback, schema, mutable])

DictConfig([default])

Schema([items, fallback])

SchemaBuilder()

class datumaro.components.config.Schema(items=None, fallback=None)[source]#

Bases: object

class Item(ctor, internal=False)[source]#

Bases: object

items(allow_fallback=True)[source]#
keys(allow_fallback=True)[source]#
values(allow_fallback=True)[source]#
get(key, default=None)[source]#
class datumaro.components.config.SchemaBuilder[source]#

Bases: object

add(name, ctor=<class 'str'>, internal=False)[source]#
build()[source]#
class datumaro.components.config.Config(config=None, fallback=None, schema=None, mutable=True)[source]#

Bases: object

items(allow_fallback=True, allow_internal=True)[source]#
keys(allow_fallback=True, allow_internal=True)[source]#
values(allow_fallback=True, allow_internal=True)[source]#
update(other)[source]#
remove(key)[source]#
get(key, default=None)[source]#
set(key, value)[source]#
classmethod parse(path: str | IO, *args, **kwargs)[source]#
static yaml_representer(dumper, value)[source]#
dump(path: str | IO)[source]#
class datumaro.components.config.DictConfig(default=None)[source]#

Bases: Config

set(key, value)[source]#