/gsheets/.
For Google OAuth setup, see Google Workspace Setup.
Config
Filesystem Layout
owned (spreadsheets you created) and
shared (spreadsheets shared with you). The filename shape is:
Cache
The Google Sheets resource usesIndexCacheStore. Index entries
store spreadsheet IDs and metadata. There is no separate content
cache — file content caching is handled by the workspace IOResult
mechanism.
Example
examples/gsheets/gsheets.py for the full working example.
Shell Commands
Standard commands available on the mounted Google Sheets tree:
Resource-specific commands:
gws-sheets-read
Read cell values from a spreadsheet range.
Returns the cell values as JSON.
gws-sheets-write
Write cell values to a spreadsheet range.
Returns the update response JSON.
gws-sheets-append
Append rows to a spreadsheet.
Either
--values or --json-values is required. Returns the
append response JSON.
gws-sheets-spreadsheets-create
Create a new spreadsheet.
Returns the created spreadsheet JSON.
gws-sheets-spreadsheets-batchUpdate
Batch update a spreadsheet.
Returns the batch update response JSON.