Skip to main content

Project Description

gsheetgraph is a small wrapper around the Google Sheet which provide the facility of ploting of graph by selecting the X-axes and Y-axes.

The data of the sheet can also be manipulated using this package.


Installation

pip install gsheetgraph


How to use it?

Import the package into the program. gsheetgraph contain a module gsheet_api which contain the methods for ploting the graph as well as manipulating the data of the sheet.

Once the module is imported it will ask to share the Google Sheet with the provided address. In the backend the user file will be linked with the Google spread sheet api. Once the file will succesfully shared the connection will be established to perform the task.


Create the object for the connection:

>>> from gsheetgraph import gsheet_api as ap
>>> con= ap.gsheetconnection()

Note: Once the object will be created it will ask to share google sheet with the provided address and also ask for the sheet name.

Get all the data from sheet

>>> con.getAllData()

Get the data of a specified row and col

# Accept the row number or col as an argument 

>>> con.getRowValues(2)
>>> con.getColValues(4)

Get the cell values

# Accept the cell index as an argumet 

>>> con.getCellValues(2,3)

Insert the data into the sheet

# Accept row number and list of data to be inserted.

>>> con.insertRow(3,[1,"abc"]) 

Delete the Rows

# Accepts start and end index to be deleted

>>> con.deleteRow(2,4)

Plot the Graph

# Choose X-axes and y-axes 
>>> con.plotGraph()

# After selecting the X-axesa and Y-axes choose the type of the graph  

Methods Description

Method Description
getAllData() print all the data present in sheet.
getRowValues() print the row data of specified row.
getColValues() print the data of specified column.
getCellValues() print the data of specified cell. It accept row index and column index of cell.
insertRow() Inserted the data into the sheet. It accept two argument row number and list of data to be inserted.
deleteRow() Delete the rows. It accept the starting and end index of the sheet which need to be deleted.
updateCell() Updates the cell value. It accept three argument row number, col number and value which need to be changed.
plotGraph() Ask user to select the X-axes and Y-axes.
plotLineChart() Once the X-axes and Y-axes will selected by selecting the type of the graph the function will be triggered.
plotScatterPlot() Once the X-axes and Y-axes will selected by selecting the type of the graph the function will be triggered.
ploltHistogram() Once the X-axes and Y-axes will selected by selecting the type of the graph the function will be triggered.
plotBarChart() Once the X-axes and Y-axes will selected by selecting the type of the graph the function will be triggered.

License © 2020 Neeraj Kumar

This package is distributed under the MIT license.

Release files for gsheetgraph 0.1.3

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

Source distribution (sdist)

Source distribution for gsheetgraph 0.1.3
File Size Uploaded
gsheetgraph-0.1.3.tar.gz 3.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gsheetgraph 0.1.3
File Interpreter ABI Platform
gsheetgraph-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 10.0 kB

Release files / gsheetgraph-0.1.3.tar.gz

Download URL gsheetgraph-0.1.3.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
fa840d13eba1699e9d1edc838ccb69412848689cb90c3d45bae3b76b00fa8c40
BLAKE2b-256 checksum
How to use checksums
906b30ebe4664228b920d1cf942b7d4c73a998fa602bc4cc08e44bd3a796c10c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.4.2 requests/2.23.0 setuptools/47.3.0.post20200616 requests-toolbelt/0.9.1 tqdm/4.26.0 CPython/3.7.0

Release files / gsheetgraph-0.1.3-py3-none-any.whl

Download URL gsheetgraph-0.1.3-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e28720db74e31100a431ad1b304648ebca5c23943104578b69bdc79c23e0d521
BLAKE2b-256 checksum
How to use checksums
810991dfb2a9dddf5772e2d3eeefdf0ba0c150974990d8005044d05ea504a31d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.4.2 requests/2.23.0 setuptools/47.3.0.post20200616 requests-toolbelt/0.9.1 tqdm/4.26.0 CPython/3.7.0

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

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