{"id":13989300,"url":"https://github.com/XtremeRahul/gdrive_folder_size","last_synced_at":"2025-07-22T10:31:55.704Z","repository":{"id":51085168,"uuid":"291295661","full_name":"XtremeRahul/gdrive_folder_size","owner":"XtremeRahul","description":"A simple script to calculate gDrive folder size, and total number of files and folders in it using python❤️","archived":false,"fork":false,"pushed_at":"2023-04-05T18:56:41.000Z","size":57,"stargazers_count":52,"open_issues_count":0,"forks_count":36,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-08-09T13:15:41.446Z","etag":null,"topics":["gdrive","gdrive-folder","python","size-calculation"],"latest_commit_sha":null,"homepage":"http://telegram.me/XtremeProjects","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/XtremeRahul.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-08-29T15:19:09.000Z","updated_at":"2024-05-30T04:50:59.000Z","dependencies_parsed_at":"2024-01-18T04:09:51.500Z","dependency_job_id":"c2085493-df3f-4bee-a3d1-e1e7c2e0183f","html_url":"https://github.com/XtremeRahul/gdrive_folder_size","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XtremeRahul%2Fgdrive_folder_size","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XtremeRahul%2Fgdrive_folder_size/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XtremeRahul%2Fgdrive_folder_size/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XtremeRahul%2Fgdrive_folder_size/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/XtremeRahul","download_url":"https://codeload.github.com/XtremeRahul/gdrive_folder_size/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227079189,"owners_count":17727975,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gdrive","gdrive-folder","python","size-calculation"],"created_at":"2024-08-09T13:01:35.829Z","updated_at":"2024-11-29T08:30:50.345Z","avatar_url":"https://github.com/XtremeRahul.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# GDrive Folder Size Calculator\n\nThis is a simple yet only known effective method to calculate google drive folder size using Python.\nWorks 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.\n\n## Also calculates total number of files and folders inside whole tree\n\nIt returns a dict contains name, size, size in bytes, type, total number of files and total number of folders\nof the given gdrive file/folder's link/fileID. \n\nThe keys in the dict are name, size, bytes, type, files and folders.\n\n## All you need to do is this:\n1) ```pip3 install -r requirements.txt```\n2) Create a **`service`** variable and pass it to the GoogleDriveSizeCalculate class. Notes to create it are given inside the bottom of the script. There you can either use a credentials.json or a service account to auth the service.\n3) ```python3 gdrive_calculator.py```\n4) On the terminal, Input the url/fileid of your file/folder in Google Drive (Files associated with your account OR public shareable links Only)\n\n## Output Example:\n```\nName: Smallville (2001-) Season 1-4 S01-S04 \nSize: 38.25GB\nType: Folder\nBytes: 41074136619\nFiles: 24\nFolders: 5\n\nIf you want only size in bytes:\nprint(calculate['bytes'])\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FXtremeRahul%2Fgdrive_folder_size","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FXtremeRahul%2Fgdrive_folder_size","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FXtremeRahul%2Fgdrive_folder_size/lists"}