Skip to content

New Converter API

Pre-release
Pre-release
Compare
Choose a tag to compare
@jkminder jkminder released this 14 Jul 10:56
· 100 commits to main since this release

The converter newly only accepts schemas as a string. This allows the schema string to be generically generated. Futher the library provides a load_file function under rel2graph.utils to make switching to the new api as easy as possible.

Old way:

converter = Converter(path_to_file, my_iterator, my_graph)

New way:

from rel2graph.utils import load_file
converter = Converter(load_file(path_to_file), my_iterator, my_graph)