"""Dagster definitions for the FERC to SQLite process."""importimportlib.resourcesfromdagsterimportDefinitions,graphimportpudlfrompudl.extract.fercimportALL_DBF_EXTRACTORSfrompudl.extract.xbrlimportxbrl2sqlite_op_factoryfrompudl.resourcesimportRuntimeSettings,datastore,ferc_to_sqlite_settingsfrompudl.settingsimportEtlSettings,XbrlFormNumber
[docs]defferc_to_sqlite():"""Clone the FERC FoxPro databases and XBRL filings into SQLite."""forextractorinALL_DBF_EXTRACTORS:extractor.get_dagster_op()()forforminXbrlFormNumber:xbrl2sqlite_op_factory(form)()