API reference¶
-
class
camel.
Camel
(registries=())¶ Class responsible for doing the actual dumping to and loading from YAML.
-
add_registry
(registry, tag_prefix=None, tag_shorthand=None)¶
-
dump
(data)¶
-
load
(data)¶
-
load_all
(data)¶
-
load_first
(data)¶
-
lock_version
(cls, version)¶
-
make_dumper
(stream)¶
-
make_loader
(stream)¶
-
-
class
camel.
CamelDumper
(*args, **kwargs)¶ Subclass of yaml’s SafeDumper that scopes representers to the instance, rather than to the particular class, because damn.
-
add_multi_representer
(data_type, representer)¶
-
add_representer
(data_type, representer)¶
-
represent_binary
(data)¶
-
-
class
camel.
CamelLoader
(*args, **kwargs)¶ Subclass of yaml’s SafeLoader that scopes constructors to the instance, rather than to the particular class, because damn.
-
add_constructor
(data_type, constructor)¶
-
add_implicit_resolver
(tag, regexp, first)¶
-
add_multi_constructor
(data_type, constructor)¶
-
add_path_resolver
(*args, **kwargs)¶
-
-
class
camel.
CamelRegistry
(tag_prefix=u'!', tag_shorthand=None)¶ -
dumper
(cls, tag, version, inherit=False)¶
-
freeze
()¶
-
frozen
= False¶
-
inject_dumpers
(dumper, version_locks=None)¶
-
inject_loaders
(loader)¶
-
loader
(tag, version)¶
-
run_constructor
(constructor, version, *yaml_args)¶
-
run_representer
(representer, tag, dumper, data)¶
-
-
exception
camel.
DuplicateVersion
¶