Registry /
gcp / databricks-google-sheets
Install & Compatibility
Where this runs
tested against v0.8.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 193MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 10.7s · import 0.000s · 185MB
193MB installed
● package 193MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
DatabricksGoogleSheets
✓ from databricks_google_sheets import DatabricksGoogleSheets
✗ from databricks_google_sheets import GoogleSheetsClient
Initialize client with service account credentials and read a sheet into a DataFrame.
from databricks_google_sheets import GoogleSheetsClient
import os
# Set credentials via environment variables or Databricks secrets
scope = ['https://www.googleapis.com/auth/spreadsheets']
creds = GoogleSheetsClient.get_credentials(
service_account_key=os.environ.get('GOOGLE_APPLICATION_CREDENTIALS', '')
)
client = GoogleSheetsClient(creds)
# Read a sheet
url = 'https://docs.google.com/spreadsheets/d/your-sheet-id/edit'
df = client.read_from_url(url, sheet_name='Sheet1')
print(df.head())
Upgrade
Version history
0.8.0latest on PyPI · released Jan 29, 2023
Audit
Dependencies
google-authrequiredRequired for authentication with Google Sheets API.
gspreadrequiredUnderlying library to interact with Google Sheets.
pandasrequiredUsed to represent data as DataFrames.