Skip to main content

plot-gsheets

plot-gsheets is a small wrapper around the Google Sheets API (v4) to provide more convenient way to plot Google Sheets from Python scripts.

Links

  1. Github: https://github.com/karatuno/plot-gsheets
  2. PyPi: https://pypi.org/project/plot-gsheets/

Installation

This package runs under 3.5+, use pip to install:

pip install plot-gsheets

Usage

Importing plot_gsheets

>>> import plot_gsheets

Get all columns of google sheet

Syntax:

plot_gsheets.get_columns(SPREADSHEET_ID,sheet_name)

where SPREADSHEET_ID can be found like here in you google sheet URL:

https://docs.google.com/spreadsheets/d/SPREADSHEET_ID/edit#gid=0

and sheet_name can be found at the bottom left of window

2Ueaix.th.png

example:

>>> plot_gsheets.get_columns('1SrZfvr2ee54r7HR1jGtAE9zHIj_Y-UzK9ok8bdwkpqc','Sheet1')
['timestamp', 'average_sales', 'offer_price']

Plot by specifying columns

Syntax:

plot_gsheets.plot_sheet_columns(SPREADSHEET_ID,sheet_name,x_column_name,y_column_name)

sheet columns can be found by using plot_gsheets.get_columns and thus x_column_name,y_column_name can be specified by seeing output

example :

>>> plot_gsheets.plot_sheet_columns('1SrZfvr2ee54r7HR1jGtAE9zHIj_Y-UzK9ok8bdwkpqc','Sheet1','timestamp','average_sales')

2UetJS.png

plot will be saved as plot.png

Google colab example :

https://colab.research.google.com/drive/1yIW8wunsHVJiwRKltNQ7fBi9ph37Xqu2?usp=sharing

Release files for plot-gsheets 0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for plot-gsheets 0.4
File Size Uploaded
plot_gsheets-0.4.tar.gz 3.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for plot-gsheets 0.4
File Interpreter ABI Platform
plot_gsheets-0.4-py3-none-any.whl Python 3 none any Details

Total release size: 7.9 kB

Release files / plot_gsheets-0.4.tar.gz

Download URL plot_gsheets-0.4.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
5fafb94515a469f71776999de56db38933ebf7dfea402a9e227743904767c7f7
BLAKE2b-256 checksum
How to use checksums
0fde5b6c5f8426699b69a674f762d8cc9bb46c319fec6cd7209522017acad7dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5

Release files / plot_gsheets-0.4-py3-none-any.whl

Download URL plot_gsheets-0.4-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ed6c9474e3996f5c3d30bce2df45bf6460298596eae34247bd1e5a433aba3ca7
BLAKE2b-256 checksum
How to use checksums
055561188179a4e441711d68c0652562c1006a8fd798e96c0a27931e76051749
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5

Release history Release notifications | RSS feed

This release

0.4 This release

2 release files

0.3

2 release files

0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page