Repo is ready

This commit is contained in:
warproxxx
2025-03-31 12:16:51 -04:00
commit 8e500d9437
35 changed files with 6044 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
from google.oauth2.service_account import Credentials
import gspread
import os
def get_spreadsheet():
"""Get the main Google Spreadsheet using credentials and URL from environment variables"""
scope = ["https://spreadsheets.google.com/feeds", "https://www.googleapis.com/auth/drive"]
credentials = Credentials.from_service_account_file('credentials.json', scopes=scope)
client = gspread.authorize(credentials)
spreadsheet = client.open_by_url(os.getenv("SPREADSHEET_URL"))
return spreadsheet