AI-powered Google Drive folder structure analyzer and reorganizer
Project description
Drive Reorganizer
A CLI tool that reads your Google Drive folder structure and uses Claude AI to suggest a smarter reorganization.
How it works
- Authenticates with Google Drive via OAuth (read-only access)
- Fetches your entire folder structure and file metadata in a single API sweep
- Sends the structure to Claude, which analyzes it and suggests improvements
- Displays the current structure and AI suggestions in the terminal
No file contents are ever read — only names, types, and modification dates.
Installation
pip install drive-reorganizer
Setup
Run the interactive setup wizard:
drive-reorganizer setup
The wizard will guide you through:
- Anthropic API key — enter your key when prompted; it's saved to
~/.config/drive-reorganizer/config.json - Google Drive authentication — a browser window opens for sign-in; your token is cached automatically
All configuration is stored in ~/.config/drive-reorganizer/ — nothing is written to the project directory.
Usage
drive-reorganizer analyze
On subsequent runs, authentication is skipped (cached token is reused automatically).
Options
--no-browser Use console-based OAuth (for headless/SSH environments)
--no-color Disable colored output (useful for piping to a file)
Other commands
# Check that all configuration is in place
drive-reorganizer doctor
# Re-authenticate with Google (replaces saved token)
drive-reorganizer reauth
# Show version
drive-reorganizer --version
Privacy
- OAuth scope:
drive.metadata.readonly— cannot read file contents - File contents are never fetched or sent to Claude
- Suggestions are read-only; nothing in your Drive is modified
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 drive_reorganizer-0.1.2.tar.gz.
File metadata
- Download URL: drive_reorganizer-0.1.2.tar.gz
- Upload date:
- Size: 12.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
446e23f3e77812b17838d6532295f97e8d2a7e32ce8d27479bbd26fb4d5c500d
|
|
| MD5 |
a6f83681e0da411a4f53eb8c82bc5bd6
|
|
| BLAKE2b-256 |
03c692a3a1429eb7cda6f870bd5c47ab54d6d7690f82f0801669d32923898f8b
|
Provenance
The following attestation bundles were made for drive_reorganizer-0.1.2.tar.gz:
Publisher:
publish.yml on Turnonac/drive-reorganizer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
drive_reorganizer-0.1.2.tar.gz -
Subject digest:
446e23f3e77812b17838d6532295f97e8d2a7e32ce8d27479bbd26fb4d5c500d - Sigstore transparency entry: 1232052045
- Sigstore integration time:
-
Permalink:
Turnonac/drive-reorganizer@31a5a93ef89e517a8ad867f7cf4bf5f3d1c849f9 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/Turnonac
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@31a5a93ef89e517a8ad867f7cf4bf5f3d1c849f9 -
Trigger Event:
push
-
Statement type:
File details
Details for the file drive_reorganizer-0.1.2-py3-none-any.whl.
File metadata
- Download URL: drive_reorganizer-0.1.2-py3-none-any.whl
- Upload date:
- Size: 14.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bea26cfb8210659f1aceea00fea474dd77e563b5abddd3b56a3c2fc46b33e0c4
|
|
| MD5 |
8919a9589fdf2a28fa40c096ec9dad2a
|
|
| BLAKE2b-256 |
c528495fa2d7c274ee0025f3c13bb2cc481ad67bfa5970959572254cd9dba6d5
|
Provenance
The following attestation bundles were made for drive_reorganizer-0.1.2-py3-none-any.whl:
Publisher:
publish.yml on Turnonac/drive-reorganizer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
drive_reorganizer-0.1.2-py3-none-any.whl -
Subject digest:
bea26cfb8210659f1aceea00fea474dd77e563b5abddd3b56a3c2fc46b33e0c4 - Sigstore transparency entry: 1232052259
- Sigstore integration time:
-
Permalink:
Turnonac/drive-reorganizer@31a5a93ef89e517a8ad867f7cf4bf5f3d1c849f9 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/Turnonac
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@31a5a93ef89e517a8ad867f7cf4bf5f3d1c849f9 -
Trigger Event:
push
-
Statement type: