biocypher.write._write.get_writer

biocypher.write._write.get_writer(dbms: str, translator: Translator, deduplicator: Deduplicator, output_directory: str, strict_mode: bool)

Function to return the writer class based on the selection in the config file.

Parameters:
  • dbms – the database management system; for options, see DBMS_TO_CLASS.

  • translator – the Translator object.

  • output_directory – the directory to write the output files to.

  • strict_mode – whether to use strict mode.

Returns:

an instance of the selected writer class.

Return type:

instance