G Suite/Google Drive SHARED drives

I know Anvil has built in library for access basic Google Drive functions, has anyone got it working with G Suite’s Shared Drives? These are like team drives for large departments.

We have various processes where we need to access/create files directly in these locations

We haven’t done that specifically but we have used the built-in Google Auth to to access other Google APIs and scopes directly.

Looking at the shared drive docs I don’t think it will be too difficult.

1 Like

Does anyone have code for this? To access Google shared drives? This is how my org works where we have files on Google shared drives and those files are currently grabbed by python using pydrive2 library. We then process the files and drop the output off in another shared Google drive.

I’d like to do this via Anvil so my users can go to an easy to use web interface, set parameters, and get their output run.

@anthony.milano Have you requested the pydrive2 module be installed by Anvil? This would probably be the easiest way to use the code you have now.

Here’s the Anvil Docs for using the Google REST APIs.

Hi,

Thanks for your message. I did just request pydrive2 as this is how I do it right now offline and its working for me. Hopefully that can be done.

Thanks again.

Hi @anthony.milano,

We’ve now installed PyDrive2 for you, so you should be able to use your existing code directly in Anvil now. You might also be interested in a discussion from yesterday about using the Google Cloud APIs directly. I hope that helps!

2 Likes