Questions tagged [pydrive]

PyDrive is a wrapper library of google-api-python-client that simplifies many common Google Drive API tasks.

PyDrive is a wrapper library of google-api-python-client that simplifies many common Google Drive API tasks.

269 questions
0
votes
1 answer

pydrive how to fetch spreadsheet result into json

Hi, how can i get the json format of my google spreadsheet using pydrive. i can already see the result in console using print but when i try to return it always giving me errors "Object of type DataFrame is not JSON serializable"
Jore Dawal
  • 59
  • 1
  • 10
0
votes
1 answer

Pydrive auth method not using LocalWebserverAuth

from pydrive.auth import GoogleAuth from pydrive.drive import GoogleDrive gauth = GoogleAuth() gauth.LocalWebserverAuth() drive = GoogleDrive(gauth) above is a easy way to auth but LocalWebserverAuth is not usable in the command-line environment (…
Luk Aron
  • 1,235
  • 11
  • 34
0
votes
1 answer

try out PyDrive in windows desktop

I am following this to learn how to use PyDrive library I installed PyDrive at ....PycharmProjects\Qt\venv\Lib\site-packages I copied code and saved it in c:\users\me\test.py Now I am stuck at how to run it. I have google drive account already…
kobosh
  • 483
  • 2
  • 7
  • 23
0
votes
2 answers

Google Drive Python API without Creating Project

For the Google Drive Python API, in all the tutorials I have seen, they require users to create a project in their Google Dashboard, before obtaining a client ID and a client secret json file. I've been researching both the default Google Drive API…
Stephen Wong
  • 177
  • 1
  • 8
0
votes
1 answer

drive api: list files in trash bin

Is there any way to only list the trashed files? For my current project, I just need to know if the trash bin empty or not. note: I'm using python 3 and drive API v2 with PyDrive Thanks for your attention.Hope you will try to help me.
0
votes
1 answer

Why do I need to refresh a token if im using a service account with pydrive?

I'm using pydrive to upload some files to my drive. I authenticate using the following: credentials = ServiceAccountCredentials.from_json_keyfile_name( settings.GOOGLE_API_SERVICE_ACCOUNT, scopes ) pydrive_auth =…
ninesalt
  • 4,054
  • 5
  • 35
  • 75
0
votes
1 answer

Pydrive: get details about shared file

file_list = drive.ListFile({'q': "'' in parents and trashed=false"}).GetList() This gives me details of shared folder through folder id. But I want to get details about a particular shared file
0
votes
1 answer

dictionary update sequence element #0 has length

I am using PyDrive to upload a zip file to google drive. Here is the code Can someone let me know why I am getting this error? def google_drive_folder_upload(drive, fileLoc): file1 = drive.CreateFile({'title: LogFiles', …
rain
  • 363
  • 6
  • 15
0
votes
1 answer

I can see only files created with my script pydrive

As the title says I have an issue with pydrive. I ran the code given in the pydrive quickstart (https://googleworkspace.github.io/PyDrive/docs/build/html/quickstart.html) and I created a settings and credentials file to avoid entering my credentials…
Extreole
  • 21
  • 7
0
votes
1 answer

Deleting file from google share drive using pydrive, file exist, but API return 404 File not found error

I am trying to delete a file on a shared drive using pydrive, but I cannot delete the file. When I get the information about the file on the drive, it shows the file ID, but when I use "Trash() function", it shows an error as "File not found:…
taku27
  • 1
0
votes
1 answer

Authentication, Upload file to drive & edit an existing spreadsheet -

I need to upload some images & edit some Google Spreadsheets within my desktop application, and chose PyDrive to help me access my drive (seemed easier at the time than the regular Google API). However, I'm having difficulties to make changes to an…
0
votes
2 answers

Accessing a file from google drive within Python

I am working on a machine learning task and have saved a Keras model and want to deploy it to Github (so that I can host a web demo using Streamlit and/or Flask). However, the model file is so large (> 1 GB), that I cannot upload it to Github for…
golden543
  • 21
  • 2
0
votes
1 answer

Python script runs directly via command line but does not run via shell/bash script

I had a python script main.py it did something and to run it via crontab on a daily basis I created the following file (I think it's called bash script): #!/bin/sh source /Users/PathToProject/venv/bin/activate python…
GePlusE
  • 13
  • 10
0
votes
2 answers

Unable to upload > 200 MB csv file using Python Drive API

I am trying to automate my daily tasks using drive API and I came across an error when I try to upload the larger files (> 300 MB CSV) whereas the following code is working for uploading the smaller files (<100 MB). Added that I am running the…
0
votes
1 answer

How to write non blocking code using PyQT5 for uploading to google drive with PyDrive?

I am trying to upload data to Google Drive using pydrive on click of a button of PyQT5. I want to display a message showing like "Data back up in progress...." in status bar (Or onto a label). However I am getting the message only when uploald is…
Angom
  • 721
  • 1
  • 11
  • 27