{"id":18995751,"url":"https://github.com/turbot/steampipe-plugin-googlesheets","last_synced_at":"2025-04-22T13:48:18.439Z","repository":{"id":41829396,"uuid":"422056155","full_name":"turbot/steampipe-plugin-googlesheets","owner":"turbot","description":"Use SQL to instantly query spreadsheets, sheets, and cell data from Google Sheets. Open source CLI. No DB required.","archived":false,"fork":false,"pushed_at":"2025-04-16T16:36:12.000Z","size":492,"stargazers_count":32,"open_issues_count":7,"forks_count":0,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-04-17T00:06:04.612Z","etag":null,"topics":["backup","etl","googlesheets","googlesheetsapi","hacktoberfest","postgresql","postgresql-fdw","sql","sqlite","steampipe","steampipe-plugin","zero-etl"],"latest_commit_sha":null,"homepage":"https://hub.steampipe.io/plugins/turbot/googlesheets","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/turbot.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2021-10-28T03:49:22.000Z","updated_at":"2025-04-16T16:36:15.000Z","dependencies_parsed_at":"2024-04-12T14:59:04.224Z","dependency_job_id":"740fd64c-b6ac-429a-9739-929569551553","html_url":"https://github.com/turbot/steampipe-plugin-googlesheets","commit_stats":{"total_commits":33,"total_committers":4,"mean_commits":8.25,"dds":0.3939393939393939,"last_synced_commit":"a52bc5f74d2b6f42ca0706f185b9a6b74fae19c8"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turbot%2Fsteampipe-plugin-googlesheets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turbot%2Fsteampipe-plugin-googlesheets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turbot%2Fsteampipe-plugin-googlesheets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turbot%2Fsteampipe-plugin-googlesheets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/turbot","download_url":"https://codeload.github.com/turbot/steampipe-plugin-googlesheets/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250251713,"owners_count":21399869,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["backup","etl","googlesheets","googlesheetsapi","hacktoberfest","postgresql","postgresql-fdw","sql","sqlite","steampipe","steampipe-plugin","zero-etl"],"created_at":"2024-11-08T17:32:38.607Z","updated_at":"2025-04-22T13:48:18.415Z","avatar_url":"https://github.com/turbot.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"![image](https://hub.steampipe.io/images/plugins/turbot/googlesheets-social-graphic.png)\n\n# Google Sheets Plugin for Steampipe\n\nUse SQL to query data from Google Sheets.\n\n- **[Get started →](https://hub.steampipe.io/plugins/turbot/googlesheets)**\n- Documentation: [Table definitions \u0026 examples](https://hub.steampipe.io/plugins/turbot/googlesheets/tables)\n- Community: [Join #steampipe on Slack →](https://turbot.com/community/join)\n- Get involved: [Issues](https://github.com/turbot/steampipe-plugin-googlesheets/issues)\n\n## Quick start\n\nInstall the plugin with [Steampipe](https://steampipe.io):\n\n```shell\nsteampipe plugin install googlesheets\n```\n\nConfigure your [credentials](https://hub.steampipe.io/plugins/turbot/googlesheets#credentials) and [config file](https://hub.steampipe.io/plugins/turbot/googlesheets#configuration).\n\nRun steampipe:\n\n```shell\nsteampipe query\n```\n\nQuery all the sheets in your spreadsheet:\n\n```sql\nselect\n  title\nfrom\n  googlesheets_sheet;\n```\n\n```\n+-----------+\n| title     |\n+-----------+\n| Marks     |\n| Students  |\n| Dashboard |\n| Books     |\n| Employees |\n+-----------+\n```\n\nA table is automatically created to represent each sheet mentioned in the\nconfigured `sheets` config argument.\n\nFor instance, if using the following configuration:\n\n```hcl\nconnection \"googlesheets\" {\n  plugin = \"googlesheets\"\n\n  # Google Sheets Plugin - Sample School Data\n  spreadsheet_id = \"11iXfj-RHpFsil7_hNK-oQjCqmBLlDfCvju2AOF-ieb4\"\n  sheets         = [\"Dashboard\", \"Students\", \"Books\", \"Marks\", \"Employees\"]\n}\n```\n\nTo get details for a specific table, inspect it by name:\n\n```shell\n.inspect \"Students\"\n+--------------------------+------+-------------+\n| column                   | type | description |\n+--------------------------+------+-------------+\n| Class Level              | text | Field 2.    |\n| Extracurricular Activity | text | Field 5.    |\n| GPA                      | text | Field 7.    |\n| Home State               | text | Field 3.    |\n| ID                       | text | Field 1.    |\n| Major                    | text | Field 4.    |\n| Mentor                   | text | Field 6.    |\n| Student Name             | text | Field 0.    |\n+--------------------------+------+-------------+\n```\n\nYou can query data from the `Students` sheet using the sheet's column names:\n\n```sql\nselect\n  \"Student Name\",\n  \"Class Level\",\n  \"GPA\"\nfrom\n  \"Students\";\n```\n\n```sh\n+--------------+-------------+------+\n| Student Name | Class Level | GPA  |\n+--------------+-------------+------+\n| Andrew       | Freshman    | 3.50 |\n| Alexandra    | Senior      | 3.20 |\n| Karen        | Sophomore   | 3.90 |\n| Edward       | Junior      | 3.40 |\n| Ellen        | Freshman    | 2.90 |\n| Becky        | Sophomore   | 3.10 |\n+--------------+-------------+------+\n```\n\nYou can also query data from a sheet by cell address:\n\n```sql\nselect\n  cell,\n  value\nfrom\n  googlesheets_cell\nwhere\n  sheet_name = 'Students';\n```\n\n```sh\n+------+--------------+\n| cell | value        |\n+------+--------------+\n| A1   | Student Name |\n| A2   | Alexandra    |\n| A3   | Andrew       |\n| A4   | Anna         |\n| A5   | Becky        |\n| B1   | ID           |\n| B2   | 1            |\n| B3   | 2            |\n| B4   | 3            |\n| B5   | 4            |\n+------|--------------+\n```\n\n## Engines\n\nThis plugin is available for the following engines:\n\n| Engine        | Description\n|---------------|------------------------------------------\n| [Steampipe](https://steampipe.io/docs) | The Steampipe CLI exposes APIs and services as a high-performance relational database, giving you the ability to write SQL-based queries to explore dynamic data. Mods extend Steampipe's capabilities with dashboards, reports, and controls built with simple HCL. The Steampipe CLI is a turnkey solution that includes its own Postgres database, plugin management, and mod support.\n| [Postgres FDW](https://steampipe.io/docs/steampipe_postgres/overview) | Steampipe Postgres FDWs are native Postgres Foreign Data Wrappers that translate APIs to foreign tables. Unlike Steampipe CLI, which ships with its own Postgres server instance, the Steampipe Postgres FDWs can be installed in any supported Postgres database version.\n| [SQLite Extension](https://steampipe.io/docs/steampipe_sqlite/overview) | Steampipe SQLite Extensions provide SQLite virtual tables that translate your queries into API calls, transparently fetching information from your API or service as you request it.\n| [Export](https://steampipe.io/docs/steampipe_export/overview) | Steampipe Plugin Exporters provide a flexible mechanism for exporting information from cloud services and APIs. Each exporter is a stand-alone binary that allows you to extract data using Steampipe plugins without a database.\n| [Turbot Pipes](https://turbot.com/pipes/docs) | Turbot Pipes is the only intelligence, automation \u0026 security platform built specifically for DevOps. Pipes provide hosted Steampipe database instances, shared dashboards, snapshots, and more.\n\n## Developing\n\nPrerequisites:\n\n- [Steampipe](https://steampipe.io/downloads)\n- [Golang](https://golang.org/doc/install)\n\nClone:\n\n```sh\ngit clone https://github.com/turbot/steampipe-plugin-googlesheets.git\ncd steampipe-plugin-googlesheets\n```\n\nBuild, which automatically installs the new version to your `~/.steampipe/plugins` directory:\n\n```sh\nmake\n```\n\nConfigure the plugin:\n\n```sh\ncp config/* ~/.steampipe/config\nvi ~/.steampipe/config/googlesheets.spc\n```\n\nTry it!\n\n```shell\nsteampipe query\n\u003e .inspect googlesheets\n```\n\nFurther reading:\n\n- [Writing plugins](https://steampipe.io/docs/develop/writing-plugins)\n- [Writing your first table](https://steampipe.io/docs/develop/writing-your-first-table)\n\n## Open Source \u0026 Contributing\n\nThis repository is published under the [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0) (source code) and [CC BY-NC-ND](https://creativecommons.org/licenses/by-nc-nd/2.0/) (docs) licenses. Please see our [code of conduct](https://github.com/turbot/.github/blob/main/CODE_OF_CONDUCT.md). We look forward to collaborating with you!\n\n[Steampipe](https://steampipe.io) is a product produced from this open source software, exclusively by [Turbot HQ, Inc](https://turbot.com). It is distributed under our commercial terms. Others are allowed to make their own distribution of the software, but cannot use any of the Turbot trademarks, cloud services, etc. You can learn more in our [Open Source FAQ](https://turbot.com/open-source).\n\n## Get Involved\n\n**[Join #steampipe on Slack →](https://turbot.com/community/join)**\n\nWant to help but don't know where to start? Pick up one of the `help wanted` issues:\n\n- [Steampipe](https://github.com/turbot/steampipe/labels/help%20wanted)\n- [Google Sheets Plugin](https://github.com/turbot/steampipe-plugin-googlesheets/labels/help%20wanted)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturbot%2Fsteampipe-plugin-googlesheets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fturbot%2Fsteampipe-plugin-googlesheets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturbot%2Fsteampipe-plugin-googlesheets/lists"}