Configuration
v0.6.0 (in development)
config.tomlorconfig/*.tomlwill be loaded if you create an instance without any argument.You can change the filename/directory.
Supported Format
TOMLYAMML
Supported Sections
sheetsurl: copy and paste an URL of the Google spreadsheetfilename: downloaded filenamedesc: description for you not to forgetdatefmt: used as prefix of downloaded filenameskip: set true if you wanna skip downloading (default: false)
TOML Examples
1[[sheets]]
2url = "https://docs.google.com/spreadsheets/d/1NbSH0rSCLkElG4UcNVuIhmg5EfjAk3t8TxiBERf6kBM/edit#gid=01NbSH0rSCLkElG4UcNVuIhmg5EfjAk3t8TxiBERf6kBM"
3filename = "test_data/toml_sample1.xlsx"
4description = "Example for Snapshot module (in TOML)"
5datefmt = "%Y"
6skip = false
7
8[[sheets]]
9url = "https://docs.google.com/spreadsheets/d/16Sc_UgShNuxMfRnBiFsjmfThE1VfVhJf3jgmxNvFeEI/edit#gid=0"
10filename = "snapd/toml_sample2.csv"
11desc = "20210304_storage_comparison"
12datefmt = "%Y%m%d"
13skip = false
YAML Examples
1sheets:
2- url: "https://docs.google.com/spreadsheets/d/1NbSH0rSCLkElG4UcNVuIhmg5EfjAk3t8TxiBERf6kBM/edit#gid=01NbSH0rSCLkElG4UcNVuIhmg5EfjAk3t8TxiBERf6kBM"
3 filename: "test_data/toml_sample1.xlsx"
4 description: "Example for Snapshot module (in TOML)"
5 datefmt: "%Y"
6 skip: false
7- url: "https://docs.google.com/spreadsheets/d/16Sc_UgShNuxMfRnBiFsjmfThE1VfVhJf3jgmxNvFeEI/edit#gid=0"
8 filename: "snapd/toml_sample2.csv"
9 desc: "20210304_storage_comparison"
10 datefmt: "%Y%m%d"
11 skip: false
v0.5.0
Make
./config/directory and place your config files (TOML/YAML)If
confddoes not exist, it will search config files in. (current directory)You can change
confddirectory
Supported Format
TOMLYAML
Don’t mix two formats
TOMLoverridesYAMLsettings
Supported Sections
volumessaved: where to put download fileslogd: where to put logslogf: name of logfile
optionswget:--quiet
datefmtsheetsname: downloaded filename (without extensions)desc: description for you not to forgeturl: copy and paste an URL of the Google spreadsheetformat: select fromxlsx,ods,csv,tsvdatefmt: used as prefix of downloaded filenameskip: set true if you wanna skip downloading (default: false)
TOML Examples
1[sheets]
2[sheets.toml_sample1]
3name = "toml_sample1"
4desc = "Example for Snapshot module (in TOML)"
5url = "https://docs.google.com/spreadsheets/d/1NbSH0rSCLkElG4UcNVuIhmg5EfjAk3t8TxiBERf6kBM/edit#gid=01NbSH0rSCLkElG4UcNVuIhmg5EfjAk3t8TxiBERf6kBM"
6format = "xlsx"
7datefmt = "%Y"
8
9[sheets.toml_sample2]
10name = "toml_sample2"
11desc = "20210304_storage_comparison"
12url = "https://docs.google.com/spreadsheets/d/16Sc_UgShNuxMfRnBiFsjmfThE1VfVhJf3jgmxNvFeEI/edit#gid=0"
13format = "csv"
14datefmt = "%Y%m%d"
YAML Examples
1volumes:
2 snapd: 'snapd/'
3 logd: 'varlogs/'
4
5options:
6 wget:
7 '--quiet'
8
9datefmt: "%Y%m%dT%H%M%S"
1sheets:
2 yaml_sample1:
3 name: "yaml_sample1"
4 desc = "Example for Snapshot module (in YAML)"
5 url = "https://docs.google.com/spreadsheets/d/1NbSH0rSCLkElG4UcNVuIhmg5EfjAk3t8TxiBERf6kBM/edit#gid=01NbSH0rSCLkElG4UcNVuIhmg5EfjAk3t8TxiBERf6kBM"
6 format: "xlsx"
7 datefmt: "%Y"