Giter Club home page Giter Club logo

kumodocs's Introduction

Kumodocs

A tool for GSuite acquisition and analysis that can be easily extended through module creation to other services. Kumodocs retrieves cloud-native artifacts, internal data structures that maintain SaaS/web app state information. These artifacts have no presence on the local machine. In GSuite collaboration services, these cloud natives have the form of append-only logs that track each minor change to a document. Kumodocs processes these logs to retrieve comments, suggestions, plain-text, drawings, and deleted images for any given revision.

Kumodocs currently supports Google Docs and Google Slides. Google drive contents are retrieved and the user is prompted to choose a file. The revision log for that file is obtained and processed for the artifacts mentioned above.

Configuration

Google API requires OAuth2 authentication to access drive services. An app must be created and registered at Google project Credentials page, where the client_id and client_secret can be found. These must be added to config/gdrive_config.json

Installation

Requirements include:

1. Get a client ID and client secret

First, Kumodocs needs an OAuth 2.0 client ID and client secret to make requests to Google's sign-in endpoints.

To find your project's client ID and client secret, do the following:

  1. Open the Credentials page.
  1. If you haven't done so already, you may need to create a new project before creating credentials. Click create project and input any name.
  2. Create your project's OAuth 2.0 credentials by clicking Create credentials > OAuth client ID, and providing the information needed to create the credentials. Select "Other" as the type.
  3. Look for the Client ID and client secret in the OAuth 2.0 client IDs section. For details, click the client ID.
  4. Add the client ID and client secret to config/gdrive_config.json

2. Python Program

The recommended method of installation is to create a virtual environment using the virtualenv python package

$ cd kumodocs
$ virtualenv kumodocs

Activate the virtual environment by using source activate (linux) or running activate.bat (windows)

$ source kumodocs/bin/activate (linux)  ||  kumodocs\Scripts\activate.bat (windows)

A new virtual environment is created, where installation will not cause changes to the path or modify existing python packages. Installation can be completed by:

$ pip install --editable .

This will install the required packages and create a kumodocs executable usable from anywhere.

Alternatively, required packages can be installed with pip via:

$ pip install -r requirements.txt

Executing python kumodocs.py will start the service.

Usage

If using virtualenv and kumodocs is on path:

kumodocs || kumodocs -h, --help for options

If packages are locally installed:

python kumodocs.py -h, --help

Known Limitations and Issues

  • Sheets and Forms modules are not implemented yet.
  • Slides do not support starting revisions higher than 1

Contact Information

Author: Shane McCulley <[email protected]>

kumodocs's People

Contributors

smcculle avatar nejc-rettro avatar hexavore avatar

Watchers

James Cloos avatar Nejc Kisek 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.