A package to export Google Sheet to CSV via API
Project description
sheet2csv
Python package to transform Google Sheet to CSV.
Install
pip install sheet2csv
Example
import os
import sheet2csv
SHEET_ID = "PUT_ID_OF_SHEET_HERE"
RANGE_STATS = "SheetName!A3:ZZ"
GOOGLE_API_KEY = os.environ["GOOGLE_API_KEY"]
# First row of range will be become header row of CSV
sheet2csv.sheet2csv(
id=SHEET_ID, range=RANGE_STATS, api_key=GOOGLE_API_KEY, filename="export.csv",
)
Devlopment
git clone https://github.com/sledilnik/sheet2csv cd sheet2csv pipenv install pipenv run pip install -e . pipenv run test
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sheet2csv-1.0.4.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for sheet2csv-1.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f98ced24ce6bda9b17aff66a630944560b9141d17fa9a43885f12b679b8e9da1 |
|
MD5 | 9091ae07ed97bb18926cd01ea6a875a5 |
|
BLAKE2b-256 | 9ef5a99028b7afb1b2e371f7e41c33ac551247edd47d2d18e4d719fe8ba6ca8a |