Skip to main content

this is gsheetgraph package

Project description

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.

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

gsheetgraph-0.1.3.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

gsheetgraph-0.1.3-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file gsheetgraph-0.1.3.tar.gz.

File metadata

  • Download URL: gsheetgraph-0.1.3.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for gsheetgraph-0.1.3.tar.gz
Algorithm Hash digest
SHA256 fa840d13eba1699e9d1edc838ccb69412848689cb90c3d45bae3b76b00fa8c40
MD5 7fadcaefea9f3f0cce1f6a146b7a97be
BLAKE2b-256 906b30ebe4664228b920d1cf942b7d4c73a998fa602bc4cc08e44bd3a796c10c

See more details on using hashes here.

File details

Details for the file gsheetgraph-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: gsheetgraph-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for gsheetgraph-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e28720db74e31100a431ad1b304648ebca5c23943104578b69bdc79c23e0d521
MD5 a2202dd87a5ed6038c59b80b02e27c3f
BLAKE2b-256 810991dfb2a9dddf5772e2d3eeefdf0ba0c150974990d8005044d05ea504a31d

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