google-drive-export
Export and archive Google Drive files
- 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.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
- 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
Release files for google-drive-export 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| google_drive_export-0.1.4.tar.gz | 6.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| google_drive_export-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.8 kB
Release files / google_drive_export-0.1.4.tar.gz
| Download URL | google_drive_export-0.1.4.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d7f023eefdbd1948091daa0a974ba0619e0541bb3c3080c4397005610d391e6e
|
|
BLAKE2b-256 checksum How to use checksums |
87db3f12170473656c760062169f90c5553658371330bfb82bb754ff3cf2585a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|
Release files / google_drive_export-0.1.4-py3-none-any.whl
| Download URL | google_drive_export-0.1.4-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
13e0e88cbecfe7e68dce5a7e420a8580235bd94cf0dd606eb00ddaef396cf914
|
|
BLAKE2b-256 checksum How to use checksums |
83b810b9b09b81b481a1975688a08066476ce96c9850ad844664a54ce66ec1a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|