snapsheets/next.py
Usage
snapsheets.next.Sheet
from snapsheets.next import Sheet
url = "https://docs.google.com/spreadsheets/d/16Sc_UgShNuxMfRnBiFsjmfThE1VfVhJf3jgmxNvFeEI/edit#gid=2015536778"
filename = "sample.csv"
description = "Sample spreadsheet for snapsheets"
datefmt = "%Y"
skip = False
s = Sheet(url=url, filename=filename, description=description, datefmt=datefmt, skip=skip)
s.snapshot()
# (printed to stdout)
# 📣 Sample spreadsheet for snapsheets
# 🤖 Downloaded as sample.csv
# 🚀 Renamed to 2022_sample.csv
snapsheets.next.Book
from snapsheets.next 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