Coder Social home page Coder Social logo

sheetq's Introduction

Sheetq – Google Spreadsheet CLI client.

Installation

Sheetq requires Ruby 2.3 or newer.

Install using gem (Currently not work)

$ gem install sheetq

Install in sandbox

$ gem install bundler
$ mkdir /path/to/install/sheetq
$ cd /path/to/install/
$ bundle init
$ echo 'gem "sheetq"' >> Gemfile
$ bundle install --path=vendor/bundle --binstubs=exe
$ export PATH=/path/to/install/sheetq/exe:$PATH

Setup

  1. Get OAuth CLIENT_ID/CLIENT_SECRET

    Visit https://console.developers.google.com and follow the instruction. Googling ‘Creating a Google API Console project and client ID’ would help.

  2. Create app config file interactively
    $ sheetq init
    
    Creating ~/.config/sheetq/config.yml ...
    Get your CLIENT_ID/CLIENT_SECRET at https://console.developers.google.com
    Googling 'Creating a Google API Console project and client ID' would help.
    CLIENT_ID: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com
    CLIENT_SECRET: xxxxxxxxxxxxxxxxxxxxxxxx
    Gmail address: [email protected]
    DEFAULT_SHEET_ID: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    Making config directory ~/.config/sheetq ...
          create  /Users/nom/.config/sheetq
    Making cache directory ~/.cache/sheetq ...
           exist  Ignore /Users/nom/.cache/sheetq
    Copying file(s) into ~/.config/sheetq/config.yml ...
           exist  Ignore ~/.config/sheetq
              ok  copy /Users/nom/.config/sheetq/config.yml
    done.
        
  3. Grant OAuth access to Google (browser will be invoked)
    $ sheetq auth
    
    Authenticating [email protected]...
    Enter the resulting code: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
        

    If you want to add another account, try sheetq auth --user=another_account.

  4. Check your sheet
    $ sheetq show 'Class Data!A2:E'
    
    Alexandra,Female,4. Senior,CA,English
    Andrew,Male,1. Freshman,SD,Math
    Anna,Female,1. Freshman,NC,English
    :
        

sheetq's People

Contributors

yoshinari-nomura avatar masafumi0612 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.