Open netsettler opened 1 year ago
This is an improvement on Some tools for working with spreadsheets (PR #275) to generalize it a bit more and add support for .csv files.
.csv
From the CHANGELOG.rst...
CHANGELOG.rst
New module sheet_utils for loading workbooks.
sheet_utils
Important things of interest:
Class ItemManager for loading Item-style data from either .xlsx or .csv files.
ItemManager
.xlsx
Function load_items that does the same as ItemManager.load.
load_items
ItemManager.load
Various low-level implementation classes such as:
Classes XlsxManager and CsvManager for loading raw data from .xlsx and .csv files, respectively.
XlsxManager
CsvManager
Classes ItemXlsxManager and ItemCsvManager for loading Item-style data from .xlsx and .csv files, respectively.
ItemXlsxManager
ItemCsvManager
Contains a fix for a bug in ff_utils.get_schema_names (C4-1086).
ff_utils.get_schema_names
I like the organization here, and the consideration for csv files which can easily be adapted for tsv files.
Yeah, I can probably trivially add tsv files. I'll look at that.
This is an improvement on Some tools for working with spreadsheets (PR #275) to generalize it a bit more and add support for
.csv
files.From the
CHANGELOG.rst
...New module
sheet_utils
for loading workbooks.Important things of interest:
Class
ItemManager
for loading Item-style data from either.xlsx
or.csv
files.Function
load_items
that does the same asItemManager.load
.Various low-level implementation classes such as:
Classes
XlsxManager
andCsvManager
for loading raw data from.xlsx
and.csv
files, respectively.Classes
ItemXlsxManager
andItemCsvManager
for loading Item-style data from.xlsx
and.csv
files, respectively.Contains a fix for a bug in
ff_utils.get_schema_names
(C4-1086).