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.10+
  • 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.3.tar.gz (6.4 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.3-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: google_drive_export-0.1.3.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for google_drive_export-0.1.3.tar.gz
Algorithm Hash digest
SHA256 510fe631eb445fc49b0daf379cecc8a60c3b66643210f2e605730b2d589bb19f
MD5 a27ec6414626e172b32a50b52c7a7404
BLAKE2b-256 abe2425cc305179a6c62a722575e205d9ed0df598b18eb4f2d7ba7b2054450ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for google_drive_export-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 478c56b42f7bc7e27ebc31730bf282bdfb15a21faab22514f01427b01d7c5c92
MD5 233e308e4eee008eb8c6aff99c4c755e
BLAKE2b-256 1efdd6e62ebd6d8ac2635f3a88911e058f95c38db579a15f4b0e4fba3b9bea38

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