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.6.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for sheet2csv-1.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13064115e2cf987496b375026bf14d11c3ff997237cb8d7d87071e445cccb61f |
|
MD5 | a230b17f591f32d5ae5cac41c2574705 |
|
BLAKE2b-256 | eeee63f49e3fcee190574011b6cee6b67a2010a64ea5b4acdf6e89937d4521cd |