snapsheets.bookο
from snapsheets.book import Book
book = Book("config.toml")
book.snapshots()
# π£ Sample spreadsheet for snapsheets. (%Y%m%d)
# π€ Downloaded sample1.csv
# π Rnamed sample1.csv to 20220602_sample1.csv
# π£ Sample spreadsheet for snapsheets. (%Y%m)
# π€ Downloaded sample2.csv
# π Rnamed sample2.csv to 202206_sample2.csv
Module Contentsο
Classesο
A class for collection of spreadsheets |
APIο
- class snapsheets.book.Bookο
A class for collection of spreadsheets
- fname: strο
βconfig.tomlβ
config filename or directory
- __post_init__() Noneο
- get_fnames() list[pathlib.Path]ο
Get list of configuration files.
Returns
list[Path] list of configuration files
- load_config() dictο
Load configuration from files.
Supported format:
toml,.yml, and.yaml
Returns
dict configuration in dict-object
- load_config_toml(fname: pathlib.Path) dictο
Load configurations from TOML format.
Parameters
fname : Path config filename
Returns
dict config as dict-object
- load_config_yaml(fname: pathlib.Path) dictο
Load configurations from YAML format.
Parameters
fname : Path config filename
Returns
dict config as dict-object
- get_sheets() list[snapsheets.sheet.Sheet]ο
Get list of sheets in configuration.
Returns
list[Sheet] list of Sheet objects
- snapshots() Noneο
Take a snapshot of sheets.