Code Monkey home page Code Monkey logo

visicalc's Introduction

title layout
README
default

visicalc

Google Spreadsheets API using Python

Installation

cd ~/src/github

git clone [email protected]:davejagoda/visicalc.git

cd visicalc

pipenv install

Setup

You need a client_secrets.json file. Go here:

https://console.developers.google.com

Create a new project.

Create an OAuth2 client ID (type Other).

Save the JSON file somewhere safe.

Grant your project access:

./writeGoogleBearerToken.py -c client_secrets.json -t oauth_token.json

Resources

Reading Google Sheets in Python

Parse Error on calling GetSpreadsheetsFeed()

Product Requirements

Sample Invocations

Activate pipenv (needed before running any of the subsequent commands):

pipenv shell

Print out details about all your spreadsheets named 'foo' using your token:

lsSpreadsheet.py -t oauth_token.json -n foo

Validate that dates are in ascending order:

validateSpreadsheet.py -t oauth_token.json -n foo -d

Validate that numbers are in ascending order:

validateSpreadsheet.py -t oauth_token.json -n foo -i

visicalc's People

Contributors

davejagoda avatar

Stargazers

Alex Buchkovsky avatar

Watchers

 avatar  avatar

Forkers

ahcub

visicalc's Issues

lsSpreadsheet.py -r switch does not work

./lsSpreadsheet.py -t dj_visicalc_token.json -n fullyPopulate -v -w -r

Produces this error:

authorize
refresh
number of spreadsheets containing the name fullyPopulate is 1
1Z4Qo5pSsefqWsj4jWqF7GXfnsPPVRYXBKM52oGCM4tE fullyPopulate
number of worksheets found is 1
 od6 Sheet1 rows:1000 columns:26
number of cells found is 0
Traceback (most recent call last):
  File "./lsSpreadsheet.py", line 81, in <module>
    enumerate_documents(ss_feed, args.worksheets, args.rows, verbose=args.verbose)
  File "./lsSpreadsheet.py", line 57, in enumerate_documents
    enumerate_worksheets(spreadsheet_id, show_rows, verbose=verbose)
  File "./lsSpreadsheet.py", line 50, in enumerate_worksheets
    enumerate_rows(spreadsheet_id, worksheet_id, verbose=verbose)
  File "./lsSpreadsheet.py", line 24, in enumerate_rows
    current_row = cells_feed.entry[0].cell.row
IndexError: list index out of range

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.