MCPcopy Index your code
hub / github.com/The-Politico/gootenberg

github.com/The-Politico/gootenberg @v1.6.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.6.0 ↗ · + Follow
29 symbols 74 edges 34 files 0 documented · 0% updated 3y agov1.6.0 · 2021-03-10★ 38
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

POLITICO

gootenberg

Gootenberg

A tool for handling everything a news developer needs from the Google API.

Why This?

Because news developers are writing their own utilities to process data from Google Drive for special projects rigs, and we can make something better if we stop all that duplication.

Installation

Install the package

$ npm install gootenberg

Usage

Create a Google Doc. Share it with your Google service account's client email (see Authenticating). Get the Doc ID for that document. You can find it in the URL between d/ and /edit like this:

docId

Import it, create a new instance of Gootenberg, authenticate it with your Google credentials, and run one of its asynchronous functions.

import Gootenberg from 'gootenberg';
import credentials from './credentials.json'

async function myFunc(){
  const goot = new Gootenberg();
  await goot.auth.jwt(credentials);

  const data = await goot.parse.archie('MY_DOC_ID');
}

Methods

auth

docs

drive

parse

sheets

Developing & Contributing

If you'd like to contribute, check out these docs.

Core symbols most depended-on inside this repo

wrap
called by 3
src/parse/archie/_docsToArchie.js
listRevisions
called by 2
src/drive/getLastModified.js
getToken
called by 1
src/cli/cmds/token.js
parseElement
called by 1
src/parse/archie/_docsToArchie.js
parseParagraph
called by 1
src/parse/archie/_docsToArchie.js
getChildren
called by 1
src/drive/ls.js
getComments
called by 1
src/drive/comments.js
constructor
called by 0
src/index.js

Shape

Function 26
Class 2
Method 1

Languages

TypeScript100%

Modules by API surface

src/parse/archie/_docsToArchie.js3 symbols
src/index.js3 symbols
src/drive/ls.js2 symbols
src/drive/getLastModified.js2 symbols
src/drive/comments.js2 symbols
src/cli/cmds/token.js2 symbols
src/sheets/getAll.js1 symbols
src/sheets/create.js1 symbols
src/sheets/appendRows.js1 symbols
src/parse/table/index.js1 symbols
src/parse/archie/index.js1 symbols
src/drive/rename.js1 symbols

For agents

$ claude mcp add gootenberg \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page