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.7.tar.gz
(4.4 kB
view details)
Built Distribution
File details
Details for the file sheet2csv-1.0.7.tar.gz
.
File metadata
- Download URL: sheet2csv-1.0.7.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d0ad2f8b06ddf38ed8dfc00b8c43d0c77367f07833eb20bf08e36fed7ca4282 |
|
MD5 | 66c768f29d047d496bcd2a52966205d1 |
|
BLAKE2b-256 | 79d239384e8a9c53d3e810f99caf8c65128ed07b812a43a0c87d800ba144faac |
File details
Details for the file sheet2csv-1.0.7-py3-none-any.whl
.
File metadata
- Download URL: sheet2csv-1.0.7-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14004ed4481d9db304ed71ae358e13704cb61b2f83ab746247d4482a304ecce2 |
|
MD5 | e1923e463c8a2ab4eac302bc818441b2 |
|
BLAKE2b-256 | 066406454d5bfa61431921fc9eefec7be500960b09700632ae63d5d79ba7b556 |