Giter VIP home page Giter VIP logo

gspread-tool's Introduction

Gspread-Tool

This is a tool that can turn a regular old spreadsheet file (*.csv) into a Google Spreadsheet!


Prerequisites:

Automatically

If you have pip install all you have to do is pip install -r requirements.txt

Manually

  • Get OAuth2 Service account
  • Install gspread (via pip)
  • Install OAuth2Client (version 1.5.2) (via pip)
  • Install PyOpenSSL (via easy_install)
  • Change the "/path/to/file" in spreadTool.py to the path of your service account credentials

Getting OAuth2 Permission:

  1. Go to Google Developer's Console
  2. Create a project
  3. Enable the Drive API
  4. Create a Service Account OAuth2

Next, you need to share your spreadsheet file with that service account. You can find the account name under 'Service Account'. It should be some randomly generated garbage followed by @developer.gserviceaccount.com.

Usage:

This is very easy, the only things you need to do is manually create a Google Spreadsheet and share it with your OAuth service account. Then just run the following program!

$ spreadtool.py -f "LameSpreadsheet.csv" -n "Google Spreadsheet Name"

If you'd like to specify the sheet that you'd like to write to, use the -s argument (defaults to 0)

$ spreadtool.py -f "LameSpreadsheet.csv" -n "Google Spreadsheet Name" -s 0

gspread-tool's People

Watchers

 avatar  avatar

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.