Skip to main content

Export your Google Drive data

Project description

google-drive-export

Export your Google Drive data


About:

This is a command line tool for exporting your personal Google Drive files using the Google Drive API v3.

It will export all files that are owned by your account (not shared with you from other users), and will not save native Google App files (Docs/Sheets/Slides/Forms/etc). Files are saved in their appropriate directory structure inside a directory named exported_files.

For more information:


Requirements:

  • Python 3.9+
  • Packages:
    • google-api-python-client
    • google-auth-httplib2
    • google-auth-oauthlib

Usage:

usage: google_drive_export [-h] [--dir DIR]

options:
  -h, --help  show this help message and exit
  --dir DIR   output directory

Installation:

Create a virtual environment and install with pip

  • On Linux/Mac:
python3 -m venv venv
source venv/bin/activate
pip install google-drive-export
  • On Windows:
py -m venv venv
venv\Scripts\activate
pip install google-drive-export

For more information on virtual env and pip, see:

Install globally with pipx

pipx install google-drive-export

For more information on pipx, see:


Authorization for use with Google Drive:

After installing, you must follow these steps:

1. Enable the Google Drive API

2. Configure the OAuth Consent screen

3. Authorize credentials for a desktop application

  • Go to the Google Cloud console (Clients)

4. Run the program

google_drive_export
  • The first time you run it, a browser window will open and you will be prompted to authorize access to your Google account:
    • If you are not already signed in to your Google Account, sign in when prompted
    • If you are signed in to multiple accounts, select the account to use for authorization
    • Click Accept
  • Authorization information is stored in the file system (token.json), so the next time you run it, you aren't prompted for authorization

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

google_drive_export-0.1.0.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

google_drive_export-0.1.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file google_drive_export-0.1.0.tar.gz.

File metadata

  • Download URL: google_drive_export-0.1.0.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for google_drive_export-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e49c9cdf19438c1ceba87c93851f3fdc1c0b435d74ab5a40d07484671ab28eef
MD5 68b00ebd2999361cab59a07c64e34cb0
BLAKE2b-256 ca8328739d5fa594cc2ce700236900c8a9ce554fa3f45078085eede15e82ef2a

See more details on using hashes here.

File details

Details for the file google_drive_export-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for google_drive_export-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 03d5d28106535f76d8e6d7f1ee8b29ae83907af6fa1f2084d986b49b67382b88
MD5 d1a3e1d4d998d2d233209ca7a1345395
BLAKE2b-256 bbe8b790efa589a716e92449cce93b31c6e19016cdba1264ff99d9cfd080e551

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page