Export your Google Drive data
Project description
google-drive-export
Export your Google Drive data
- Copyright (c) 2025 Corey Goldberg
- License: MIT
- Development: GitHub
- Download/Install: PyPI
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
- Go to the Google Cloud console (Enable access to API)
- Create a Project
- Enable the API
2. Configure the OAuth Consent screen
- Go to the Google Cloud console (Branding)
- Configure your Project
- Go to the Google Cloud console (Audience)
- Add yourself as a Test user
3. Authorize credentials for a desktop application
- Go to the Google Cloud console (Clients)
- https://console.cloud.google.com/auth/clients
- Create a Client (Application type > Desktop app)
- Downloaded JSON file, rename it to credentials.json, and move it to your working directory
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f56384a6dedfcc9bee9bfeab635c47e61206a58f2f2f1042b336069f7343f523
|
|
| MD5 |
29cf46719740dc19a323f97842920800
|
|
| BLAKE2b-256 |
a3d31765bf3377cec6c687a2f6868bd6b0af502e1ba4647a72c9401869de2df0
|
File details
Details for the file google_drive_export-0.1.1-py3-none-any.whl.
File metadata
- Download URL: google_drive_export-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e1521431b4b8ce7390fcca2030d8a49f22c0f7b9bf829a69a42c2473f1ef5e8
|
|
| MD5 |
5c134d184589c73cf2af40cfba3e1889
|
|
| BLAKE2b-256 |
959f874e4a4811107f935a0b42a92938dbd3382c0baf721ad266016f79e8c6ec
|