Skip to main content

Plot Chart from your Google Sheets

Project description

Project description

'gdplot' is a library to generate charts of predefined format and produce a chart of specific nature, i.e average sales and timeperiod, using the data available in google sheets. It requires your google credentials and the file access to produce a chart.

  • No credentials saved

Links

    GitHub: https://github.com/sumankumar0091/gdplot
    PyPI: https://pypi.org/project/gdplot/
    Documentation: 
    Issue Tracker:https://github.com/sumankumar0091/gdplot/issues
    Download: 

Installation

This package runs under Python3.5+, use pip to install:

  • $ pip install gdplot

Get google Credentials

Log into the Google Developers Console with the Google account to the spreadsheets you want to access. Create (or select) a project and enable the Drive API and Sheets API (under Google Apps APIs).

Go to the Credentials for your project and create New credentials > OAuth client ID > of type Other. In the list of your OAuth 2.0 client IDs click Download JSON for the Client ID you just created. Save the file as client_secrets.json in your home directory (user directory). Another file, named storage.json in this example, will be created after successful authorization to cache OAuth data. On you first usage of gsheets with this file (holding the client secrets), your webbrowser will be opened, asking you to log in with your Google account to authorize this client read access to all its Google Drive files and Google Sheets.

If this does not work refer to link under See also section.

Usage

Syntax:
> import gdplot as gd
> gd.create_chart($credentials, $URL)
e.g.:
> import gdplot as gd
> gd.create_chart(/gcp_credentials/client_secret.json, https://docs.google.com/spreadsheets/d/1pzmXgLMMMWdsfuNuq3a15tP7kbsHpijVAU0BGAJrOAP/edit#gid=0)

See also

'' https://medium.com/swlh/google-drive-api-with-python-part-i-set-up-credentials-1f729cb0372b (Source: https://medium.com/@billydharmawan) https://medium.com/@osanda.deshan/getting-google-oauth-access-token-using-google-apis-18b2ba11a11a (Source: https://medium.com/@osanda.deshan) ''

License

This package is distributed under the MIT license.

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

gdplot-1.0.1.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

gdplot-1.0.1-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file gdplot-1.0.1.tar.gz.

File metadata

  • Download URL: gdplot-1.0.1.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for gdplot-1.0.1.tar.gz
Algorithm Hash digest
SHA256 2f361d1d63818e257f41ed8941b0c75b4f80a12c812f903eced0fe89fb7cfcd0
MD5 686599e249f6c2a7d200b51d5c16373b
BLAKE2b-256 d9189046542491aead7244d67af2bdcf9c879b8c73ab51188bbd41aaee177720

See more details on using hashes here.

File details

Details for the file gdplot-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: gdplot-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for gdplot-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 71737ef07097c81d5447edc627a2ab8dfdc1940a7104bf3e5eb5da2695ae511d
MD5 26b60bf8469e24a314860c0c178ad227
BLAKE2b-256 43a5f3ae285735a2a7b4c4df645d30d2683d574da1629e2f86cfa6a129acec54

See more details on using hashes here.

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