python-odml icon indicating copy to clipboard operation
python-odml copied to clipboard

Usage of a odML template files

Open lzehl opened this issue 8 years ago • 0 comments

With the separation of more complex odML tree structures from the odML terminology side to a template store side (cf. #136) we could also provide a function that loads an odML file via an url or a local repository as an odML template:

import odml

# returns the template odml file from the template store page (as clone)
doc1 = odml.load_template(url_some_temp_store_file)

# returns some local file (as clone) with the option to empty all values
doc2 = odml.load_template(dir_some_local_file, empty_values=True)

lzehl avatar Aug 05 '17 11:08 lzehl