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:
- Create a new project
- Add Google Drive API and Gsheet API
- Go to Credentials and create a Service account
- Get the key by downloading the json file
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef040ef85a059dcc813805a5dac1d12384b893c3fc8c73a401e6ae8b555a109d
|
|
| MD5 |
9935cecca3526a847ea7a3f7637b24e1
|
|
| BLAKE2b-256 |
b5fc1299f6cac17368bae717b8bbc7cb3c04c5a6bd7c2f895830900035f4012e
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
823632ed63cd6ac9eb076cf1ef562a4f9e250f51bcefb5dd4637d4761638ae24
|
|
| MD5 |
d24287780d54f92ac106e0662c6cf92e
|
|
| BLAKE2b-256 |
63acfe2f7677f2500cb23cfc5b6425fc66e98867d18cfe6f3b54cb43b9999017
|