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.3.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for sheet2csv-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d278b761308f45fe3526190442c47cf71d889bd181de6c1116c043c3d2abd59 |
|
MD5 | 9f089500f7d99e3028d8ead3b51a543e |
|
BLAKE2b-256 | 4b4ae6ef615c31b478985290dcb85c007a0c94fa1ba537520036797bf2cd9fcf |