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.1.tar.gz (18.1 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.1-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: filedust-0.3.1.tar.gz
  • Upload date:
  • Size: 18.1 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.1.tar.gz
Algorithm Hash digest
SHA256 5b5d1ac38ff3cc508d00d289ca9d5d9e7d21b2ec87754afe150a49c4d2aee7ac
MD5 2fbdfe9331337b01a15fb65bd0fe3599
BLAKE2b-256 6ecf7058c4c5a5a3af0170d0b4fff594d7d759d489ef8460597e2f3ce9255bc7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: filedust-0.3.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7016a71e8e5ed2c59bab050544d4d9250c0acfa21e4a88b3708c3c86396ea19e
MD5 4abff85fc0ac768303704839db034c60
BLAKE2b-256 8273f13ce3247c681f00d05195422861939889aaa1a1361f55d9663af8f1c1c0

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