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",
)
Development
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.5.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for sheet2csv-1.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1c46cf02bb7f0d9240df637aa980b90f3ab7c40920e5096e02aeb3b2806a551 |
|
MD5 | e609fadcb97b9923877d8d09cd44e272 |
|
BLAKE2b-256 | 944ace865b6cdad65d9f24bb6cf976568893606439b04323e48ea89ffcd474fe |