caosdb.yamlapi module

!!! Deprecated !!! YAML interface for the database (caosdb)

caosdb.yamlapi.append_sublist(v, newel, def_entity_type)
caosdb.yamlapi.dict_to_xml(d)
d: The dictionary (possibly loaded from yaml)

to convert to caosdb-xml.

caosdb.yamlapi.insert_yaml_file(yamlfilename, simulate=False)

Inserts the contents of ‘yamlfilename’ into the database.

Set ‘simulate’ to True if you don’t actually want to insert the xml, but only receive what would be sent.

caosdb.yamlapi.kv_to_xml(k, v)
caosdb.yamlapi.process(text)

Do some replacements on the original file to obtain valid yaml.

caosdb.yamlapi.yaml_file_to_xml(yamlfilename)
caosdb.yamlapi.yaml_to_xml(yamlstr)