Skip to main content

A package to export Google Sheet to CSV via API

Project description

sheet2csv

PyPI version Test

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 hashes)

Uploaded Source

Built Distribution

sheet2csv-1.0.7-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page