Skip to main content

Read en excel file throgh google drive and plot it

Project description

gsheets

|PyPI version| |License| |Supported Python| |Format|

gsheets is a small wrapper around the Google Sheets API_ (v4) to provide more convenient access to Google Sheets_ from Python scripts.

go to google console
1.Create a Project in google cloud
2.through Navigation menu Go ti API'S & Services and go to library
3.search for google sheets api and enable it
4.search for google drive api enable it and on the right side corner click on create credentials select google drive api in which api you are using column and web server (eg node js tomcat) in Where will you be calling the API from dropdown and tick on application data. and then no and press button
5.fill any name in account and role select project and then editor and type json and submit. it will download the json file .
6.open json file search client email go to google sheet you want to use and select share and give access to client email and send.

Links

Installation

This package runs under Python 2.7, and 3.6+, use pip_ to install:

.. code:: bash

$ pip install read-excel

This will also install google-api-python-client_ and its dependencies, notably httplib2_ and oauth2client_, as required dependencies.

Quickstart

Log into the Google Developers Console_ with the Google account whose spreadsheets you want to access. Create (or select) a project and enable the Drive API and Sheets API (under Google Apps APIs).

Go to the Credentials for your project and create New credentials > OAuth client ID > of type Other. In the list of your OAuth 2.0 client IDs click Download JSON for the Client ID you just created. Save the file as client_secrets.json in your home directory (user directory).

import the library and load the data by passing the filename and json file downloaded from console it will return a dataframe and print top 5 rows of your data:

.. code:: python

>>> import read-excel as rf

>>> dataframe = rf.load_data(filename_of_your_sheet,json_path)

For plotting the data you have to pass the dataframe you just loaded and pass the name X axis columns name and Y axis column name it will plot the data for you:

.. code:: python

for plotting
>>> plot_data(dataframe,"x-axis-column","y-axis-column")

...

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

exceldrive2py-0.0.1-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file exceldrive2py-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: exceldrive2py-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200925 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.7.9

File hashes

Hashes for exceldrive2py-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bbbfbc768cee5e2004e92ee29af49d0cdb22a551129db95d1c1ac11e8793f420
MD5 d9fd44558a9d4f0dded66316b4e07bdf
BLAKE2b-256 34c3d9ed0a0045067240119cd68e87a4038ef00881faa848dc84fee6514e6f2e

See more details on using hashes here.

Supported by

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