ScenarioList Source Refactoring Checklist
This document outlines the refactoring process to move the from_X methods from ScenarioList to child classes of Source.
Refactoring Process
For each source type, follow these steps:
- Create a new child class of
Sourceinscenario_source.py - Add a deprecated classmethod in
ScenarioListthat references the new source class - Run pytest to confirm everything works correctly
- Move to the next source type
Source Types Checklist
-
urls- Already implemented asURLSource -
list- Already implemented asListSource -
directory- Implemented asDirectorySource -
list_of_tuples- Implemented asTuplesSource -
sqlite- Implemented asSQLiteSource -
latex- Implemented asLaTeXSource -
google_doc- Implemented asGoogleDocSource -
pandas- Implemented asPandasSource -
dta- Implemented asStataSource -
wikipedia- Implemented asWikipediaSource -
excel- Implemented asExcelSource -
google_sheet- Implemented asGoogleSheetSource -
delimited_file- Implemented asDelimitedFileSource -
csv- Implemented asCSVSource(extendingDelimitedFileSource) -
tsv- Implemented asTSVSource(extendingDelimitedFileSource) -
dict- Implement asDictSource -
nested_dict- Implement asNestedDictSource -
parquet- Implemented asParquetSource -
pdf- Implemented asPDFSource -
pdf_to_image- Implemented asPDFImageSource