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
Metadata
Release files for sheet2csv 1.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sheet2csv-1.0.7.tar.gz | 4.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sheet2csv-1.0.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.5 kB
Release files / sheet2csv-1.0.7.tar.gz
| Download URL | sheet2csv-1.0.7.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3d0ad2f8b06ddf38ed8dfc00b8c43d0c77367f07833eb20bf08e36fed7ca4282
|
|
BLAKE2b-256 checksum How to use checksums |
79d239384e8a9c53d3e810f99caf8c65128ed07b812a43a0c87d800ba144faac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / sheet2csv-1.0.7-py3-none-any.whl
| Download URL | sheet2csv-1.0.7-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
14004ed4481d9db304ed71ae358e13704cb61b2f83ab746247d4482a304ecce2
|
|
BLAKE2b-256 checksum How to use checksums |
066406454d5bfa61431921fc9eefec7be500960b09700632ae63d5d79ba7b556
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|