Skip to content

Instantly share code, notes, and snippets.

View dat-adi's full-sized avatar
🔘
I don't even know what I don't know.

Dat Adithya dat-adi

🔘
I don't even know what I don't know.
View GitHub Profile
@dat-adi
dat-adi / test_sheet.py
Last active January 17, 2021 07:35
A small snippet of code to exhibit the functionality of Google Sheets in Python.
import gspread
from oauth2client.service_account import ServiceAccountCredentials
from pprint import pprint
#sheet access
scope = ["https://spreadsheets.google.com/feeds",'https://www.googleapis.com/auth/spreadsheets',"https://www.googleapis.com/auth/drive.file","https://www.googleapis.com/auth/drive"]
# used to retrieve credentials from the *creds.json* file
creds = ServiceAccountCredentials.from_json_keyfile_name("creds.json", scope)
client = gspread.authorize(creds)
@dat-adi
dat-adi / what-a-gist.py
Created May 5, 2020 18:54
What's a gist?
print("You might question as to what a gist is.")
print("Well, I hate to break it to ya, but, i'm asking the same question.")