Skip to main content

Reads Gsheets from Gdrive and Plots graph

Project description

Gdriveplotter

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

Gdriveplotter

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 gdriveplotter

Importing and calling the function

    import gdriveplotter
    gdriveplotter.gdplot()

Pypi Link

    https://pypi.org/project/gdriveplotter/

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.2.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.2-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gdriveplotter-0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 f257114aaf115875e2c71b163277b652aad08b5aedcf162dc2dce029011cd1cb
MD5 7ceabbd4e8638f8f0a2f42f470595e53
BLAKE2b-256 ef3812ec75924c483671fc09ccd19cf4314413db309e402ea35c029cb35bc555

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gdriveplotter-0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c4f381a51a8090b6ec535c6405185bd52260456fbbc49a4af105ac0d12816102
MD5 5845049de98881fd1bc217c05caa7382
BLAKE2b-256 c80dc1e3c66e3f8753cbfd14853a75b8f9c56dc55461eb2cabe85ed3186f8fd5

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