Metadata-Version: 2.1
Name: sheet2csv
Version: 1.0.7
Summary: A package to export Google Sheet to CSV via API
Home-page: https://github.com/sledilnik/sheet2csv
Author: sledilnik.org
Author-email: info@sledilnik.org
Project-URL: Bug Tracker, https://github.com/sledilnik/sheet2csv/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE.txt

# sheet2csv

[![PyPI version](https://badge.fury.io/py/sheet2csv.svg)](https://badge.fury.io/py/sheet2csv)
[![Test](https://github.com/sledilnik/sheet2csv/actions/workflows/test.yml/badge.svg)](https://github.com/sledilnik/sheet2csv/actions/workflows/test.yml)

Python package to transform Google Sheet to CSV.

## Install

```sh
pip install sheet2csv
```

## Example

```python
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

```sh
git clone https://github.com/sledilnik/sheet2csv
cd sheet2csv
pipenv install
pipenv run pip install -e .
pipenv run test
```
