Skip to content

Commit b75ba8e

Browse files
committed
add documentation
1 parent 62dce38 commit b75ba8e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

10_gsheet/hello_gsheet.py

+7
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55

66

77
def authenticate(credentials):
8+
"""
9+
Authenticate with Google and get the client object
10+
"""
811
scope = [
912
"https://www.googleapis.com/auth/spreadsheets",
1013
"https://www.googleapis.com/auth/drive.file",
@@ -16,6 +19,10 @@ def authenticate(credentials):
1619

1720

1821
def main():
22+
"""
23+
Create a Google Sheet
24+
"""
25+
# Pass in the file location for the JSON file you created
1926
client = authenticate("pyspread.json")
2027
try:
2128
workbook = client.open("test")

0 commit comments

Comments
 (0)