try out PyDrive in windows desktop

I am following this to learn how to use PyDrive library

I installed PyDrive at ....PycharmProjectsQtvenvLibsite-packages I copied code and saved it in c:usersmetest.py

Now I am stuck at how to run it. I have google drive account already with some files stored.

I need simple steps to run it from command prompt or Idle or PyCharm Do I need Google cloud account or any thing else?

I changed to (venv)c:usermetest.py

I get

ERROR  File "..PycharmProjectsQtvenvlibsite-packagesoauth2clientclientsecrets.py", line 121, in _loadfile
    with open(filename, 'r') as fp:
FileNotFoundError: [Errno 2] No such file or directory: 'client_secrets.json'
from pydrive.auth import GoogleAuth
from pydrive.drive import GoogleDrive

gauth = GoogleAuth()
gauth.LocalWebserverAuth()

drive = GoogleDrive(gauth)

file1 = drive.CreateFile({'title': 'Hello.txt'})
file1.SetContentString('Hello')
file1.Upload() 


docsfile.GetContentFile('test.html', mimetype='text/html')

Answer

PyDrive is deprecated in favor of PyDrive2 (pip install PyDrive2)

All Google SDKs require an auth token, and you can refer to the documentation on how to generate one and where to create a JSON file (in your working directory) that is read by the library

Also be sure to read the official Google Drive Python API page