Skip to content

feat: add read_sheet() and write_sheet() with GoogleSheetsConnection#2

Open
sabrikaragonen wants to merge 1 commit intomainfrom
feature/google-sheets-read-write
Open

feat: add read_sheet() and write_sheet() with GoogleSheetsConnection#2
sabrikaragonen wants to merge 1 commit intomainfrom
feature/google-sheets-read-write

Conversation

@sabrikaragonen
Copy link
Copy Markdown
Contributor

Summary

  • Add top-level read_sheet() and write_sheet() functions matching the zero-boilerplate philosophy of query()
  • Add GoogleSheetsConnection class for standalone google_sheets connections (service_account_json / service_account_file)
  • Fix GCPConnection.sheets() to scope credentials for Sheets + Drive and cache the client
  • Add read_sheet() / write_sheet() methods on both GCPConnection and GoogleSheetsConnection

Test plan

  • 35 new tests in test_sheets.py covering connection resolution, read/write, connection methods, import errors, and credential parsing
  • Full test suite passes (224/224 unit tests, 1 pre-existing E2E skip)
  • from bruin import read_sheet, write_sheet works

🤖 Generated with Claude Code

…support

Add zero-boilerplate Google Sheets read/write that works with both
google_cloud_platform (reuse GCP creds) and google_sheets (standalone)
connection types. Fix GCPConnection.sheets() to scope credentials for
Sheets+Drive.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant