Skip to content

Getting Started

Installation

Install gdrive-suite directly from PyPi. The library requires Python 3.11 or higher.

pip install gdrive-suite

Configuration

To use GDrive Suite, you need to enable the Google Drive API and obtain credentials for your application.

  1. Enable the Google Drive API

  2. Go to the Google Cloud Console.

  3. Create a new project or select an existing one.

  4. In the navigation menu, go to APIs & Services > Library.

  5. Search for "Google Drive API" and "Google Sheets API" and enable both.

  6. Create Credentials

  7. In the navigation menu, go to APIs & Services > Credentials.

  8. Click Create Credentials > OAuth client ID.

  9. Select Desktop app as the application type.

  10. Give the client ID a name (e.g., "GDrive Suite Client") and click Create.

  11. A window will appear. Click Download JSON to download the credentials file.

  12. Set Up Your Project

  13. Rename the downloaded JSON file to google_credentials.json.

  14. In your project, create a directory to store this file. We recommend conf/local.

  15. Place the google_credentials.json file in this directory.

Your project structure should look like this:o use Gdrive Suite you need to enable

- Place credentials in `conf/local`

```bash
├── conf
│   └── local       ├── credentials.json
├── src
│   ├── script.py

The first time you run your application, you will be prompted to authorize it via a browser window. A google_token.json file will then be created in the same directory. This token will be automatically refreshed as needed.