{"id":20066322,"url":"https://github.com/ossobv/dutree","last_synced_at":"2025-10-07T23:57:56.527Z","repository":{"id":41377461,"uuid":"114985142","full_name":"ossobv/dutree","owner":"ossobv","description":"dutree (python lib/cli) helps quickly find which files/dirs are taking up space. Compare it with a summary of ncdu.","archived":false,"fork":false,"pushed_at":"2024-04-18T15:41:45.000Z","size":121,"stargazers_count":12,"open_issues_count":2,"forks_count":2,"subscribers_count":4,"default_branch":"develop","last_synced_at":"2025-10-07T23:57:55.123Z","etag":null,"topics":["cli","disk-usage","library"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ossobv.png","metadata":{"files":{"readme":"README.rst","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}},"created_at":"2017-12-21T09:01:34.000Z","updated_at":"2025-08-27T12:15:12.000Z","dependencies_parsed_at":"2024-04-16T14:39:48.402Z","dependency_job_id":"23786a20-5ff3-4df9-8760-96838b3fa43d","html_url":"https://github.com/ossobv/dutree","commit_stats":{"total_commits":25,"total_committers":1,"mean_commits":25.0,"dds":0.0,"last_synced_commit":"0a270a7ff75a52dd5786ea379f08f08b79c289db"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/ossobv/dutree","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ossobv%2Fdutree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ossobv%2Fdutree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ossobv%2Fdutree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ossobv%2Fdutree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ossobv","download_url":"https://codeload.github.com/ossobv/dutree/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ossobv%2Fdutree/sbom","scorecard":{"id":713877,"data":{"date":"2025-08-11","repo":{"name":"github.com/ossobv/dutree","commit":"fae6ed00bf9da7eb4f7fff6577115fff435ac798"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":1,"reason":"Found 3/23 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'develop'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 11 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-22T08:55:53.231Z","repository_id":41377461,"created_at":"2025-08-22T08:55:53.231Z","updated_at":"2025-08-22T08:55:53.231Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278866934,"owners_count":26059671,"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-10-07T02:00:06.786Z","response_time":59,"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","library"],"created_at":"2024-11-13T13:56:12.175Z","updated_at":"2025-10-07T23:57:56.510Z","avatar_url":"https://github.com/ossobv.png","language":"Python","readme":"dutree :: Disk usage summary\n============================\n\n*dutree* shows a summary of the directories/files which take up the most\nspace.\n\nInstead of showing *only the root of the files* with sizes, or the\ndetails of *every file*, it shows *only the paths taking up the most\nspace*.\n\nExample usage::\n\n    $ dutree /srv --apparent-size\n\nAnnotated output, where only paths of \u003e5% of the total size are shown\n(which is about 4GB for this dataset)::\n\n     12.1 G  /srv/data/audiofiles/\n              ^-- audiofiles contains files/dirs with a total of 12.1G\n                  but it does NOT contain a single dir or file larger\n                  than 4G.\n      4.3 G  /srv/data/callrecordings/unmatched/\n      4.5 G  /srv/data/fax/\n     17.5 G  /srv/data/playlists/\n     34.4 G  /srv/data/twinfield_invoices/1/\n      7.8 G  /srv/data/*\n               ^-- data contains more files/directories than shown above\n                   but those that don't total above 4G are merged into\n                   this \"leftover\" node. that includes everything in\n                   /twinfield_invoices/ except for the /1/ subdirectory\n                   which has its individual listing above.\n     32   B  /srv/*\n               ^-- only /data/ is in /srv/, but the directory itself also\n                   takes up a tiny bit of space\n      -----\n     80.6 G  TOTAL (86558511658)\n\n**NOTE**: The directories do not count the size of themselves, only of\ntheir contents. This explains any discrepancies with ``du -sb`` output.\n\n\nLibrary usage::\n\n    \u003e\u003e\u003e from dutree import Scanner\n    \u003e\u003e\u003e scanner = Scanner('/srv')\n    \u003e\u003e\u003e tree = scanner.scan(use_apparent_size=True)\n    \u003e\u003e\u003e tree.app_size()\n    86558511658\n\n    \u003e\u003e\u003e len(tree.get_leaves())\n    7\n\n    \u003e\u003e\u003e leaf0 = tree.get_leaves()[0]\n    \u003e\u003e\u003e leaf0.name()\n    '/srv/data/audiofiles/'\n\n    \u003e\u003e\u003e leaf0.app_size() / (1024.0 * 1024 * 1024)\n    12.092280263081193\n\n\nDevelopment:\n\n- Please run the python2 and python3 tests after developing::\n\n    python2 dutree/test_dutree.py\n    python3 dutree/test_dutree.py\n\n\nHistory\n-------\n\n* v1.8\n\n  - **Add experimental feature to do scanning from a file instead of the\n    filesystem.**\n    See commit bbebcf98 for details.\n    Original code by Seppe Lucas.\n\n* v1.7\n\n  - **Skip /proc and /sys filesystems by default.**\n  - **Use --xdev to stay on the same filesystem.**\n  - **Uses --count-blocks by default; use --apparent-size to negate.**\n\n* v1.6\n\n  - **Fix so the tests work with Python 3 as well.**\n  - **Fix grave bugs with real size.**\n    The real size calculation was wrong sometimes, it could raise\n    assertions or the leaf count could be off.\n\n* v1.5\n\n  - **Add apparent vs. real size.**\n    Deprecates ``node.size()``. Use ``node.app_size()`` instead.\n    Get the real used size using ``node.use_size()``.\n    Group by real used size by passing ``use_apparent_size=False`` to\n    ``scan()``.\n  - **Don't die if we cannot enter directories.**\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fossobv%2Fdutree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fossobv%2Fdutree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fossobv%2Fdutree/lists"}