Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Streamline how local files can be referenced as source sheets. Previously, only certain combinations of formats and lists/dicts worked.
To test, create a folder
csv
with a subfoldersafeguarding
and put some csv files inside. Then use the configuration below asconfig.json
(it also references thexlsx
files within this repository). Only invokepull_data
.Note that
files_dict
key orfiles_list
entries may not contain certain special characters such as/
, as they are used as filenames. To reference a list of file paths, you'll need to either need to have all files in the same folder and specify abasepath
, or use thesheet_names
dict.Question: Because the storage filenames (after running
pull_data
) are determined by thefiles_list
entries, should we automatically append.xlsx
and.json
(for the respective subformats) so these file endings don't have to be specified in the list? This way we avoid storage filenames ending in.xlsx.json
.json.json
.Note: I haven't tested this on any existing deployments, @edmoss345 could you please check that it doesn't break anything? I also haven't tested
zip
archives (with thefiles_archive
config option). @edmoss345 I don't remember where you had an example use case, maybe you can test this or refer me to thatzip
file. Are there any deployments where this is in use currently?