Skip to main content

google-drive-export

Export and archive Google Drive files


Supported Python Versions


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

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.4.tar.gz (6.2 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.4-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for google_drive_export-0.1.4.tar.gz
Algorithm Hash digest
SHA256 d7f023eefdbd1948091daa0a974ba0619e0541bb3c3080c4397005610d391e6e
MD5 2a4b7420e47b613e710c69368c695bb2
BLAKE2b-256 87db3f12170473656c760062169f90c5553658371330bfb82bb754ff3cf2585a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for google_drive_export-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 13e0e88cbecfe7e68dce5a7e420a8580235bd94cf0dd606eb00ddaef396cf914
MD5 d029bdd7a40567a1e73f4b1741e4b132
BLAKE2b-256 83b810b9b09b81b481a1975688a08066476ce96c9850ad844664a54ce66ec1a1

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 Sentry Error logging StatusPage Status page