Skip to content

anish-murshetwar/gdrive-date-folder-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Dynamic Google Drive Date-Hierarchy & Bulk Uploader

A professional Python automation tool that dynamically builds nested date-based folder structures (Root/Expense/Statements/YYYY/MM/DD) and performs bulk file uploads to Google Drive using Service Account authentication.

✨ Key Features

  • Dynamic Rooting: Specify the target Google Drive folder via command-line arguments.
  • Auto-Hierarchy: Automatically generates a clean Year/Month/Day structure.
  • Bulk Upload: Option to upload all files from a local directory into the final destination.
  • Improved Performance: Suppresses discovery cache warnings for cleaner logs.
  • Safety & Validation: Automatically strips illegal characters from folder names.
  • Professional Logging: Tracks every action in drive_automation.log.

🛠️ Setup & Installation

  1. Install Dependencies:

    pip install -r requirements.txt

  2. Create Hierarchy and Upload Files:

    python drive_script.py "YourFolderName" "./Local_Path_To_Files"

  3. Get Google API Credentials:

    Go to the Google Cloud Console, create a new project, enable the Google Drive API, and under IAM & Admin > Service Accounts, create a key in JSON format. Rename this file to service_account.json and place it in this project folder.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages