{"id":30740021,"url":"https://github.com/gagb/gdls","last_synced_at":"2025-09-03T23:47:34.670Z","repository":{"id":312848327,"uuid":"1048915569","full_name":"gagb/gdls","owner":"gagb","description":"Unix like `ls` for Google Drive","archived":false,"fork":false,"pushed_at":"2025-09-02T10:05:53.000Z","size":30,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-02T12:10:08.654Z","etag":null,"topics":["cli","disk-usage","file-management","google-drive","tree-view","typescript"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gagb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-02T08:08:18.000Z","updated_at":"2025-09-02T11:23:23.000Z","dependencies_parsed_at":"2025-09-02T12:10:29.399Z","dependency_job_id":"9a29f1cc-f291-4b75-81c8-458962011bc1","html_url":"https://github.com/gagb/gdls","commit_stats":null,"previous_names":["gagb/gdls"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/gagb/gdls","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gagb%2Fgdls","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gagb%2Fgdls/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gagb%2Fgdls/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gagb%2Fgdls/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gagb","download_url":"https://codeload.github.com/gagb/gdls/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gagb%2Fgdls/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273529549,"owners_count":25121828,"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","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cli","disk-usage","file-management","google-drive","tree-view","typescript"],"created_at":"2025-09-03T23:47:33.804Z","updated_at":"2025-09-03T23:47:34.660Z","avatar_url":"https://github.com/gagb.png","language":"Python","readme":"# gdls\n\n**Unix `ls` for Google Drive.**\n\nBrowse your Google Drive from the terminal just like your local filesystem.\n\n## Install\n\n```bash\n# Get it\ncurl -LsSf https://astral.sh/uv/install.sh | sh\ngit clone https://github.com/gagb/google-drive-api-tools.git\ncd google-drive-api-tools\nuv pip install -e .\n\n# Set up Google Drive API\n# 1. Go to console.cloud.google.com\n# 2. Enable Drive API + create OAuth credentials  \n# 3. Download as credentials.json\n# 4. Run: gdls /\n```\n\n## Use\n\n```bash\ngdls /                    # List root\ngdls /Documents           # List folder  \ngdls -l /                 # Details\ngdls -lH /                # Human sizes\ngdls --sort=size /        # By size\ngdls -s /                 # Calculate folder sizes\ngdls -o /                 # Your files only\n```\n\n## Options\n\n```\n-l, --long               Details (size, date, owner)\n-H, --human-readable     1K, 234M, 2G instead of bytes  \n-s, --size               Calculate actual folder sizes\n-o, --owned              Your files only (excludes shared)\n--sort TYPE              name, size, date, type\n--clear-cache            Fresh start\n```\n\n## Why\n\nManaging Google Drive storage is painful. You pay for 100GB but use 1TB because you can't see what's taking space.\n\n`gdls` shows you exactly what counts against your quota. Shared folders don't count. Your duplicates do.\n\nFind your largest files:\n```bash\ngdls -lHso --sort=size /\n```\n\nClean up efficiently.\n\n## Architecture\n\nSix focused classes. No parameter explosion. Clean errors. Full validation.\n\n```\ncore.py      # Data structures and constants\nauth.py      # Google Drive authentication  \ncache.py     # Path and folder size caching\npaths.py     # Unix path → Drive folder ID\nexplorer.py  # File listing and calculations  \ndisplay.py   # Formatting and output\ncli.py       # Command interface\n```\n\n## Requirements\n\nPython 3.8+. Google Drive API access.\n\nThat's it.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgagb%2Fgdls","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgagb%2Fgdls","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgagb%2Fgdls/lists"}