1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31# myPyLibraries
Some helper libs i wrote for me
requires
pathlib
==bjfGoogle==
You have to authenticate before you can use it
Generate a OAUth2 credential from Google Developer console
Store that in 'client_secret.json' - Do not check this file in
Then authenticate - quoting the scopes you need
The first time around, you will be given a link to open in a browser - clicking thru this
link will authorise your token and give you a link to paste back into your app
This needs to happen only once - as long as you preserve your creds.sto file
storeAuthFilename='creds.sto'
scopesNeeded=['https://www.googleapis.com/auth/spreadsheets','https://www.googleapis.com/auth/drive']
goog=bjfGoogle()
goog.Authenticate('client_secret.json', storeAuthFilename,scopesNeeded)