๐Ÿ“ฆ barneyman / myPyLibraries

Some Google Client API helper libs - sheets, drive &c

โ˜… 0 stars โ‘‚ 0 forks ๐Ÿ‘ 0 watching
๐Ÿ“ฅ Clone https://github.com/barneyman/myPyLibraries.git
HTTPS git clone https://github.com/barneyman/myPyLibraries.git
SSH git clone git@github.com:barneyman/myPyLibraries.git
CLI gh repo clone barneyman/myPyLibraries
barney barney Update README.md 26ff8b2 5 years ago ๐Ÿ“ History
๐Ÿ“‚ master View all commits โ†’
๐Ÿ“„ __init__.py
๐Ÿ“„ .gitignore
๐Ÿ“„ bjfGoogle.py
๐Ÿ“„ README.md
๐Ÿ“„ setup.py
๐Ÿ“„ README.md

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)