Skip to main content

Opinionated junk cleaner for dev machines (caches, build artifacts, editor backups).

Project description

License Language GitHub Release PyPI - Version PyPI downloads

filedust

filedust is a small, fast, and safe command-line tool that scans your filesystem for obvious junk — things like Python pycache folders, build artifacts, editor backup files, and leftover temporary files — and cleans them up.

Think of it as “autoremove for files.”

Features

Cleans common junk

Deletes well-known clutter such as:

  • __pycache__/

  • .pytest_cache, .mypy_cache, .ruff_cache

  • build/, dist/

  • editor backups *~, *.swp, *.tmp, etc.

  • OS metadata like .DS_Store, Thumbs.db

Rich, colorful table output

It wasn't essential, but it's easy to read at a glance.

Single confirmation prompt

One interactive prompt at the end of the run (unless -y is used).

Reclaimed space summary

Shows how much disk space can be freed.

Safe by design

  • It ONLY runs within user's $HOME

  • Put user in control by reading ~/.filedust.conf

  • Never touches dotfiles, configs, project files, or anything important unless you want.

Installation

From PyPI

pip install filedust

From this repository

git clone https://github.com/guardutils/filedust.git
cd filedust/
poetry install

Custom config

You can download the example and add your custom rule

wget -O ~/.filedust.conf https://raw.githubusercontent.com/guardutils/filedust/main/.filedust.conf.example

TAB completion

Add this to your .bashrc

eval "$(register-python-argcomplete filedust)"

And then

source ~/.bashrc

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

filedust-0.3.0.tar.gz (18.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

filedust-0.3.0-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

Details for the file filedust-0.3.0.tar.gz.

File metadata

  • Download URL: filedust-0.3.0.tar.gz
  • Upload date:
  • Size: 18.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.13.9 Linux/6.17.8-200.fc42.x86_64

File hashes

Hashes for filedust-0.3.0.tar.gz
Algorithm Hash digest
SHA256 8d56e1136db595b73c5278fb38ba7c695ecace9ed46146cf66908c3464fe60c7
MD5 00d3725823ade2e6fd08f352abdb2468
BLAKE2b-256 8f41e59115f4409336f4f7cfeed3d545cfbc65520f71ee9a285d2cf1f2079e9e

See more details on using hashes here.

File details

Details for the file filedust-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: filedust-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 19.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.13.9 Linux/6.17.8-200.fc42.x86_64

File hashes

Hashes for filedust-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 226a7e6555361de1eccaa9ba328fb270055e236430ff73830b89e7cd35a6dc00
MD5 33e34c25baf2fb12c69cb7801b1e5abb
BLAKE2b-256 60042c3f5d6ccc10a953344dfb7bb8235fc78f381c291d288bd785cf6ea8dea9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page