All Projects → XtremeRahul → gdrive_folder_size

XtremeRahul / gdrive_folder_size

Licence: other
A simple script to calculate gDrive folder size, and total number of files and folders in it using python❤️

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to gdrive folder size

GdriveSearcherBot
Google Drive Searcher Bot Written In Python Using Pyrogram.
Stars: ✭ 57 (+23.91%)
Mutual labels:  gdrive
TorrentLeechBot
A powerful telegram mirror bot..
Stars: ✭ 94 (+104.35%)
Mutual labels:  gdrive
stremio-gdrive
Stremio addon for fetching videos from your google drive.
Stars: ✭ 73 (+58.7%)
Mutual labels:  gdrive
LoaderX-Bot
Original repo - https://github.com/lzzy12/python-aria-mirror-bot
Stars: ✭ 59 (+28.26%)
Mutual labels:  gdrive-folder
Plexguide.com
Welcome to https://PlexGuide.com ~ Rapidly deploy multiple-hasty Docker Containers through Ansible with local or Unlimited Google HD Space!
Stars: ✭ 1,631 (+3445.65%)
Mutual labels:  gdrive
dbsync
Small library for sync android SqlLite database to cloud storage (for now only GDrive)
Stars: ✭ 30 (-34.78%)
Mutual labels:  gdrive
backuptogoogle
Backup to Google Drive use gdrive
Stars: ✭ 89 (+93.48%)
Mutual labels:  gdrive
PyroGramBot
pluggable Telegram Bot based on Pyrogram
Stars: ✭ 168 (+265.22%)
Mutual labels:  gdrive
libDrive
libDrive is a Google Drive media library manager and indexer, similar to Plex, that organizes Google Drive media to offer an intuitive and user-friendly experience.
Stars: ✭ 14 (-69.57%)
Mutual labels:  gdrive
GDUPLOAD BOT2
Gdriver Upload Bot(Team Drive supported)
Stars: ✭ 54 (+17.39%)
Mutual labels:  gdrive
esp32cam-gdrive
Upload an image directly from ESP32-CAM to Google Drive
Stars: ✭ 54 (+17.39%)
Mutual labels:  gdrive
canvas-image-cover-position
Calculating image position for scaling it on the canvas.
Stars: ✭ 38 (-17.39%)
Mutual labels:  size-calculation
composer-cost
Displays cost/size of each composer package installed.
Stars: ✭ 31 (-32.61%)
Mutual labels:  size-calculation

GDrive Folder Size Calculator

This is a simple yet only known effective method to calculate google drive folder size using Python. Works for both gdrive file and folder. Uses Drive Api v3. It is scripted to be usable on terminal, the major application of this script is that you can use it on your gDrive projects by simply modifying it to your needs.

Also calculates total number of files and folders inside whole tree

It returns a dict contains name, size, size in bytes, type, total number of files and total number of folders of the given gdrive file/folder's link/fileID.

The keys in the dict are name, size, bytes, type, files and folders.

All you need to do is this:

  1. pip3 install -r requirements.txt
  2. Create a service to pass to the GoogleDriveSizeCalculate class. (Notes to create are given inside the bottom of the script itself)
  3. python3 gDrive_calculator.py
  4. On terminal, input the url or fileid of your file/folder on Google Drive (File associated with the account you using OR sharable links ONLY)

Output Example:

Name: Channel Zero (2016) Season 1-4 S01-S04 
Size: 38.25GB
Type: Folder
Bytes: 41074136619
Files: 24
Folders: 5

If you want only size in bytes:
print(calculate['bytes'])
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].