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.1.tar.gz (6.0 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.1-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: google_drive_export-0.1.1.tar.gz
  • Upload date:
  • Size: 6.0 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.1.tar.gz
Algorithm Hash digest
SHA256 f56384a6dedfcc9bee9bfeab635c47e61206a58f2f2f1042b336069f7343f523
MD5 29cf46719740dc19a323f97842920800
BLAKE2b-256 a3d31765bf3377cec6c687a2f6868bd6b0af502e1ba4647a72c9401869de2df0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for google_drive_export-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9e1521431b4b8ce7390fcca2030d8a49f22c0f7b9bf829a69a42c2473f1ef5e8
MD5 5c134d184589c73cf2af40cfba3e1889
BLAKE2b-256 959f874e4a4811107f935a0b42a92938dbd3382c0baf721ad266016f79e8c6ec

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