{"id":34082431,"url":"https://github.com/rrajaravi/pydfu","last_synced_at":"2026-04-05T18:32:05.612Z","repository":{"id":62579878,"uuid":"87663153","full_name":"rrajaravi/pydfu","owner":"rrajaravi","description":"Python Interface Disk and Filesystem Utils","archived":false,"fork":false,"pushed_at":"2017-04-12T01:02:41.000Z","size":18,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-16T14:32:46.278Z","etag":null,"topics":["disk","filesystem-utils","python-interface"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rrajaravi.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}},"created_at":"2017-04-08T20:45:24.000Z","updated_at":"2022-04-28T21:12:05.000Z","dependencies_parsed_at":"2022-11-03T21:00:59.472Z","dependency_job_id":null,"html_url":"https://github.com/rrajaravi/pydfu","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rrajaravi/pydfu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rrajaravi%2Fpydfu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rrajaravi%2Fpydfu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rrajaravi%2Fpydfu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rrajaravi%2Fpydfu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rrajaravi","download_url":"https://codeload.github.com/rrajaravi/pydfu/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rrajaravi%2Fpydfu/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31446523,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T15:22:31.103Z","status":"ssl_error","status_checked_at":"2026-04-05T15:22:00.205Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["disk","filesystem-utils","python-interface"],"created_at":"2025-12-14T12:16:01.275Z","updated_at":"2026-04-05T18:32:05.607Z","avatar_url":"https://github.com/rrajaravi.png","language":"Python","readme":"# pydfu\n[![Build Status](https://travis-ci.org/rrajaravi/pydfu.svg?branch=master)](https://travis-ci.org/rrajaravi/pydfu)\n\nPython Interface and cli for Disk and Filesystem Utils\n\n### Requirements\nUnix/Linux Operating System\n\n### How to Use\n#### Installation\n\n        $ git clone https://github.com/rrajaravi/pydfu.git\n        $ cd pydfu\n        $ python setup.py install\n\n#### Command Line\n\n        $ pydfu --help\n        usage: pydfu [-h] {df,du,scan} ...\n\n        Disk and FileSystem Utils\n\n        positional arguments:\n          {df,du,scan}  help for subcommand\n            df          df help\n            du          du help\n            scan        scan help\n\n        optional arguments:\n          -h, --help    show this help message and exit\n          \n          \n        $ pydfu df\n        FileSystem    1K-blocks     Used          Avail         Use%          Mounted On    \n        udev          3780128       0             3780128       0%            /dev          \n        tmpfs         760264        17780         742484        3%            /run          \n        /dev/sda1     102049120     9684784       87157504      11%           /             \n        tmpfs         3801300       436           3800864       1%            /dev/shm      \n        tmpfs         5120          4             5116          1%            /run/lock     \n        tmpfs         3801300       0             3801300       0%            /sys/fs/cgroup\n        vmhgfs-fuse   249414652     134421324     114993328     54%           /mnt/hgfs     \n        tmpfs         760264        76            760188        1%            /run/user/1000\n        \n        $ pydfu du /tmp/suf -h\n        258.0 B   /tmp/suf/configure_os_datastage_node.xml\n        258.0 B   /tmp/suf/configure_os_db_node.xml\n        258.0 B   /tmp/suf/configure_app_datastage_node.xml\n        258.0 B   /tmp/suf/configure_app_core_svcs_node.xml\n        258.0 B   /tmp/suf/configure_app_db_node.xml\n        258.0 B   /tmp/suf/configure_os_web_node.xml\n        258.0 B   /tmp/suf/configure_os_core_svcs_node.xml\n        258.0 B   /tmp/suf/configure_app_web_node.xml\n        258.0 B   /tmp/suf/configure_app_analytics_node.xml\n        258.0 B   /tmp/suf/configure_os_analytics_node.xml\n\n        Total Size: 2.52 KB\n\n#### Library\n\n        import pydfu\n        \n        df = pydfu.df()\n        \n        # get list of file system object\n        df.query()\n        \n        # query for a file system based on path and get file system object\n        fs = df.query_one(path='/')\n\n        # query all file systems based on size and get matches in list\n        fs = df.query(size='\u003e10g')\n\n        # query for a file system based on used size\n        fs = df.query_one(use='\u003c100%')\n        \n        # query for a file system based on multiple conditions\n        fs = df.query_one(size='\u003e10g', use='\u003c50%') \n        \n        du = pydfu.du()\n        \n        # get list of file and directory object\n        du.query('/tmp')\n        du.total_size # get total size of /tmp \n        \n        # access a file or directory object\n        du.query('/tmp')[0]\n        \n        # access information of a file or directory object\n        \u003e\u003e\u003e du.query('/tmp')[0].name\n        '/tmp/.X0-lock'\n        \u003e\u003e\u003e du.query('/tmp')[0].size\n        11\n        \u003e\u003e\u003e du.query('/tmp')[0].size_in_h\n        '11.0 B'\n\n\n### Planned work / work in progress\nTrack: https://github.com/rrajaravi/pydfu/blob/master/WORK.md\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frrajaravi%2Fpydfu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frrajaravi%2Fpydfu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frrajaravi%2Fpydfu/lists"}