google-drive-export


Namegoogle-drive-export JSON
Version 0.1.2 PyPI version JSON
download
home_pageNone
SummaryExport your Google Drive data
upload_time2025-07-19 13:32:14
maintainerCorey Goldberg
docs_urlNone
authorCorey Goldberg
requires_python>=3.9
licenseNone
keywords google drive google-drive backup export takeout
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # google-drive-export

### Export your Google Drive data

- Copyright (c) 2025 [Corey Goldberg][github-home]
- License: [MIT][mit-license]
- Development: [GitHub][github-repo]
- Download/Install: [PyPI][pypi]

[github-home]: https://github.com/cgoldberg
[mit-license]: https://raw.githubusercontent.com/cgoldberg/google-drive-export/refs/heads/master/LICENSE
[github-repo]: https://github.com/cgoldberg/google-drive-export
[pypi]: https://pypi.org/project/google-drive-export

----

## 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:
- [API Overview][api-overview]
- [REST API Reference][api-reference]
- [API Guides][api-guides]

[api-overview]: https://developers.google.com/workspace/drive/api
[api-reference]: https://developers.google.com/workspace/drive/api/reference/rest/v3
[api-guides]: https://developers.google.com/workspace/drive/api/guides/about-files

----

## 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:
- https://packaging.python.org/en/latest/tutorials/installing-packages

### Install globally with pipx

```
pipx install google-drive-export
```

For more information on pipx, see:
- https://github.com/pypa/pipx

----

## 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)
  - https://console.cloud.google.com/flows/enableapi?apiid=drive.googleapis.com
- Create a Project
- Enable the API

### 2. Configure the OAuth Consent screen

- Go to the Google Cloud console (Branding)
  - https://console.cloud.google.com/auth/branding
- Configure your Project
- Go to the Google Cloud console (Audience)
  - https://console.cloud.google.com/auth/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

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "google-drive-export",
    "maintainer": "Corey Goldberg",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "google, drive, google-drive, backup, export, takeout",
    "author": "Corey Goldberg",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/5f/80/da74cce3ba5790d6f39f65e1b0d5ae591876a11993ca7ae715a67b78a309/google_drive_export-0.1.2.tar.gz",
    "platform": null,
    "description": "# google-drive-export\n\n### Export your Google Drive data\n\n- Copyright (c) 2025 [Corey Goldberg][github-home]\n- License: [MIT][mit-license]\n- Development: [GitHub][github-repo]\n- Download/Install: [PyPI][pypi]\n\n[github-home]: https://github.com/cgoldberg\n[mit-license]: https://raw.githubusercontent.com/cgoldberg/google-drive-export/refs/heads/master/LICENSE\n[github-repo]: https://github.com/cgoldberg/google-drive-export\n[pypi]: https://pypi.org/project/google-drive-export\n\n----\n\n## About:\n\nThis is a command line tool for exporting your personal Google Drive files using the Google Drive API v3.\n\nIt will export all files that are owned by your account (not shared with you from other users), and\nwill not save native Google App files (Docs/Sheets/Slides/Forms/etc). Files are saved in their appropriate\ndirectory structure inside a directory named `exported_files`.\n\nFor more information:\n- [API Overview][api-overview]\n- [REST API Reference][api-reference]\n- [API Guides][api-guides]\n\n[api-overview]: https://developers.google.com/workspace/drive/api\n[api-reference]: https://developers.google.com/workspace/drive/api/reference/rest/v3\n[api-guides]: https://developers.google.com/workspace/drive/api/guides/about-files\n\n----\n\n## Requirements:\n\n- Python 3.9+\n- Packages:\n  - google-api-python-client\n  - google-auth-httplib2\n  - google-auth-oauthlib\n\n----\n\n## Usage:\n\n```\nusage: google_drive_export [-h] [--dir DIR]\n\noptions:\n  -h, --help  show this help message and exit\n  --dir DIR   output directory\n```\n\n----\n\n## Installation:\n\n### Create a virtual environment and install with pip\n\n- On Linux/Mac:\n\n```\npython3 -m venv venv\nsource venv/bin/activate\npip install google-drive-export\n```\n\n- On Windows:\n\n```\npy -m venv venv\nvenv\\Scripts\\activate\npip install google-drive-export\n```\n\nFor more information on virtual env and pip, see:\n- https://packaging.python.org/en/latest/tutorials/installing-packages\n\n### Install globally with pipx\n\n```\npipx install google-drive-export\n```\n\nFor more information on pipx, see:\n- https://github.com/pypa/pipx\n\n----\n\n## Authorization for use with Google Drive:\n\nAfter installing, you must follow these steps:\n\n### 1. Enable the Google Drive API\n\n- Go to the Google Cloud console (Enable access to API)\n  - https://console.cloud.google.com/flows/enableapi?apiid=drive.googleapis.com\n- Create a Project\n- Enable the API\n\n### 2. Configure the OAuth Consent screen\n\n- Go to the Google Cloud console (Branding)\n  - https://console.cloud.google.com/auth/branding\n- Configure your Project\n- Go to the Google Cloud console (Audience)\n  - https://console.cloud.google.com/auth/audience\n- Add yourself as a Test user\n\n### 3. Authorize credentials for a desktop application\n\n- Go to the Google Cloud console (Clients)\n  - https://console.cloud.google.com/auth/clients\n  - Create a Client (Application type > Desktop app)\n  - Downloaded JSON file, rename it to credentials.json, and move it to your working directory\n\n### 4. Run the program\n\n```\ngoogle_drive_export\n```\n\n- The first time you run it, a browser window will open and you will be prompted to authorize access to your Google account:\n  - If you are not already signed in to your Google Account, sign in when prompted\n  - If you are signed in to multiple accounts, select the account to use for authorization\n  - Click Accept\n- Authorization information is stored in the file system (`token.json`), so the next time you run it, you aren't prompted for authorization\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Export your Google Drive data",
    "version": "0.1.2",
    "project_urls": {
        "download": "https://pypi.org/project/google-drive-export",
        "homepage": "https://github.com/cgoldberg/google-drive-export",
        "source": "https://github.com/cgoldberg/google-drive-export"
    },
    "split_keywords": [
        "google",
        " drive",
        " google-drive",
        " backup",
        " export",
        " takeout"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "07c08c05bb6bb6d40f84ce983e201704667ec5c7e39e4f582471f725189a7032",
                "md5": "8632683076d7752038cde14d943d9657",
                "sha256": "77d2becf39d21ad6974e0778f3bc9676283756f650db4b78e33013af8b7bd2eb"
            },
            "downloads": -1,
            "filename": "google_drive_export-0.1.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8632683076d7752038cde14d943d9657",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 6529,
            "upload_time": "2025-07-19T13:32:10",
            "upload_time_iso_8601": "2025-07-19T13:32:10.348468Z",
            "url": "https://files.pythonhosted.org/packages/07/c0/8c05bb6bb6d40f84ce983e201704667ec5c7e39e4f582471f725189a7032/google_drive_export-0.1.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "5f80da74cce3ba5790d6f39f65e1b0d5ae591876a11993ca7ae715a67b78a309",
                "md5": "eccae39bebb5ca534a0210bdde8c193f",
                "sha256": "3204f7b714419a5283d51f81cfff9a3b181d390f73d4fd9901957a3379cd9002"
            },
            "downloads": -1,
            "filename": "google_drive_export-0.1.2.tar.gz",
            "has_sig": false,
            "md5_digest": "eccae39bebb5ca534a0210bdde8c193f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 6008,
            "upload_time": "2025-07-19T13:32:14",
            "upload_time_iso_8601": "2025-07-19T13:32:14.986166Z",
            "url": "https://files.pythonhosted.org/packages/5f/80/da74cce3ba5790d6f39f65e1b0d5ae591876a11993ca7ae715a67b78a309/google_drive_export-0.1.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-19 13:32:14",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "cgoldberg",
    "github_project": "google-drive-export",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "google-drive-export"
}
        
Elapsed time: 0.82152s