Skip to main content

Reads Gsheets from Gdrive and Plots graph

Project description

Gdriveplot

Introduction

This is a basic project built to read google sheet from google drive using the google credentials and google sheet key. The library can plot 2 types of graphs i.e. line plot and scatter plot.

Files

README.md -> File describing the project setup.py ->setup file to create a Python Library and host it on PyPi
test.py ->test file to check if the program is working or not

Gdriveplot

init.py -> file where the program is implemented Screenshots -> Added screenshots of the working library

Getting Started

The user will have to login to the below link.

    https://console.developers.google.com

After which the user has to do the following:

  1. Create a new project
  2. Add Google Drive API and Gsheet API
  3. Go to Credentials and create a Service account
  4. Get the key by downloading the json file
  5. Use this file as Credentials for using the library

init.py file

This file contains a function named gdplot(). The library is built to ask the user to enter their credentials and Gsheet key to read the gsheet. The function will print out the head of the dataframe using pandas. Another input is taken from the user to mention the type of graph required i.e. Line plot or Scatter plot. After which the user has to mention the x-axis column name and y-axis column name and the function plots out the required graph.

Creating Python Library and Publishing on PyPI

Here is the link which will help you to create python library and publishing it on PyPI

    https://medium.com/little-big-engineering/lets-talk-about-python-packaging-6d84b81f1bb5

Installing the Library from PyPI

pip install gdriveplot

Importing and calling the function

    import gdriveplot
    gdriveplot.gdplot()

Note

The file should be in gsheet format to work. It wont work for any other format.

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

gdriveplotter-0.1.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gdriveplotter-0.1-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file gdriveplotter-0.1.tar.gz.

File metadata

  • Download URL: gdriveplotter-0.1.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.4

File hashes

Hashes for gdriveplotter-0.1.tar.gz
Algorithm Hash digest
SHA256 ef040ef85a059dcc813805a5dac1d12384b893c3fc8c73a401e6ae8b555a109d
MD5 9935cecca3526a847ea7a3f7637b24e1
BLAKE2b-256 b5fc1299f6cac17368bae717b8bbc7cb3c04c5a6bd7c2f895830900035f4012e

See more details on using hashes here.

File details

Details for the file gdriveplotter-0.1-py3-none-any.whl.

File metadata

  • Download URL: gdriveplotter-0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.4

File hashes

Hashes for gdriveplotter-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 823632ed63cd6ac9eb076cf1ef562a4f9e250f51bcefb5dd4637d4761638ae24
MD5 d24287780d54f92ac106e0662c6cf92e
BLAKE2b-256 63acfe2f7677f2500cb23cfc5b6425fc66e98867d18cfe6f3b54cb43b9999017

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page