Skip to main content

A small example package

Project description

Plotursheet Package

The package acts as a wrapper on gsheets and retrieves a sheet from google drive.
Further it uses the same to plot a graph(currently scatterplot for continuos values)

How to install the library using pip

pip install plotursheet

Or if you want it in cwd

pip install plotursheet -t .

This would do the work

How to initialize the library and select the desired Google sheet

Now once the package is installed,
import the module and run the plotty() function within it
The required values url, column_name1, column_name2(the axes for plot),sheet number
are all to be present in a config.txt file

python   #invoke python interpreter
import plotursheet #imports the package to be used

N

How to use the various methods in the library

The package has a single method plotty() And can be invoked by running

import plotursheet
plotursheet.plotty()

Once the function is invoked, Google sheet specified at url,sheet_no
is loaded into file "detail.csv" at the working directory
Further pandas is invoked and the sheet is taken in as a pandas dataframe
Then the column names are used to plot with (currently scatterplot for 2 continuous
values is written)

IMPORTANT NOTE

  1. This package uses authentication for google sheets api The client_secrets.json must be put in root directory (for authenticaation)
    And at the first run authentication flow must be completed from the google account
    where the sheet is present in drive
    Directory to put in client_secrets
"C:/Users/<Usernaame>/"
  1. In order to supply url and column names and sheet number
    The file config.txt has to be created and placed in current working directory.
    The content has to be
# config.txt
[sheet]
#url for ur sheet
url="https://docs.google.com/spreadsheets/d/1SrZfvr2ee54r7HR1jGtAE9zHIj_Y-UzK9ok8bdwkpqc/edit?usp=sharing"
#sheet number
n=0
#x_axis
x=offer_price
#y-axis
y=average_sales

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

plotursheet-1.0.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

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

plotursheet-1.0.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file plotursheet-1.0.0.tar.gz.

File metadata

  • Download URL: plotursheet-1.0.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0.post20201006 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for plotursheet-1.0.0.tar.gz
Algorithm Hash digest
SHA256 09620fe4f48ffcd54ba4d0613a00f2678af92bec08357abd8dffb1000fb673a7
MD5 006a25de1b5d9146d555ba39e802b9a8
BLAKE2b-256 bbb8c201ace1897110f32ee50e383459414d52d7e78a39a153360993c8862de7

See more details on using hashes here.

File details

Details for the file plotursheet-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: plotursheet-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.7 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/50.3.0.post20201006 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for plotursheet-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ec50dfb2f8a642a2811cb9174ebcc6271582275e563aec601b705ef4643c03df
MD5 5288410a3721c550aa0abf4cefcb5f8a
BLAKE2b-256 e3ed3c6cc3487c029d77d01099dced0c2ceb6478088b0349ad7ba2c1f3ca26ec

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