Skip to main content

Plot data from Google sheets

Project description

SpreadG

SpreadG is a small wrapper around the Google Sheets API (v4) and gspread 3.6.0 to provide more convenient access to Google Sheets from Python scripts and plot graphs with the help of Matplotlib.

Turn on the API, download an OAuth client ID as JSON file, and start working.

Installation

# pip install -r requirement.txt
pip install spreadg

This will also install google-api-python-client and its dependencies, notably httplib2 and oauth2client, as required dependencies.

Quickstart

from spreadg import *
data=dataloader('credentials.json', "Sheetname")
df=to_df(data)
fig = plotter(df, X, y)
fig.savefig("something.png")

author: Himanshu Pal
mailto: palhimanshu997[at]gmail[.]com

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

spreadg-0.1.0.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

spreadg-0.1.0-py3-none-any.whl (2.9 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