ipypublish.convert.config_manager module

ipypublish.convert.config_manager.create_exporter_cls(class_str)[source]

dynamically load export class

ipypublish.convert.config_manager.get_export_config_path(export_key, config_folder_paths=())[source]

we search for a plugin name, which matches the supplied plugin name

ipypublish.convert.config_manager.get_export_extension(export_config_path)[source]

return the file extension of the exporter class

ipypublish.convert.config_manager.get_module_path(module)[source]

return a directory path to a module

ipypublish.convert.config_manager.handle_error(msg, err_type, raise_msg=None, log_msg=None)[source]

handle an error, by logging it, then raising

ipypublish.convert.config_manager.iter_all_export_infos(config_folder_paths=(), regex='*.json')[source]

iterate through all export configuration and yield a dict of info

ipypublish.convert.config_manager.iter_all_export_paths(config_folder_paths=(), regex='*.json')[source]

we iterate through all json files in the supplied plugin_folder_paths, and then in the export_plugins folder

ipypublish.convert.config_manager.load_export_config(export_config_path)[source]

load the export configuration

ipypublish.convert.config_manager.load_template(template_dict)[source]
ipypublish.convert.config_manager.read_json_from_directory(dir_path, file_name, jtype)[source]

load a json file situated in a directory

ipypublish.convert.config_manager.read_json_from_module(module_path, file_name, jtype)[source]

load a json file situated in a python module

ipypublish.convert.config_manager.str_to_jinja(template_str)[source]