Python OAuth 2.0 library and command line token fetcher. Usage: As a script. $ oa2 -s https://www.googleapis.com/auth/drive.file As a library for installed app flow and web server flows. See samples/