Skip to main content

Google sheet to dataframe

Project description

Google sheet to dataframe

https://img.shields.io/pypi/v/sheet_df?style=for-the-badge

Overview

This Python program connects to the google sheets api and creates a pandas dataframe from the target sheet.

Usage

df = read_google_sheet_into_dataframe(sheet_id, range_name, credentials_path)

Config

You must have SHEET_ID` and RANGE_NAME` env vars. You will also need a credentials.json from google. The credentials_path arg defaults to “credentials.json”

DEV

Create venv

python -m venv env

Activate venv

  • unix

source env/bin/activate
  • windows

env\Scripts\activate.bat

Install Packages

pip install -r requirements.txt

Test

make test

Format

make format
make lint

Version & Release

make bumpversion part=<major/minor/patch>
make release

note Don’t forget to git push with –tags

pre-commit

Setup

pre-commit install

Run all

make pre-commit

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

sheet_df-0.0.1.tar.gz (5.4 kB view hashes)

Uploaded Source

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