Skip to main content

macOS Junk Cleaner

CI PyPI version License: MIT Semantic Release

A Python-based CLI utility to scan and remove macOS-specific junk files (e.g., .DS_Store, ._*, .Spotlight-V100) from directories.

Installation

Using pip

pip install .

Using uv

uv tool install .

Usage

Scan

To see what would be cleaned with a detailed summary:

mac-clean scan /path/to/dir
# or using uv
uv run mac-clean scan /path/to/dir

Clean

The clean command is used for removal. For safety, it defaults to dry-run mode.

# Preview deletion (Dry-run)
mac-clean clean /path/to/dir

# Perform actual deletion
mac-clean clean /path/to/dir --force

Development

Setup (uv)

  1. Clone the repository.
  2. Sync the environment (creates venv and installs all dependencies and dev tools):
    uv sync
    
  3. Install pre-commit hooks:
    uv run pre-commit install
    

Linting and Formatting

This project uses Ruff for linting and formatting.

# Lint
ruff check .
# or using uv
uv run ruff check .

# Format
ruff format .
# or using uv
uv run ruff format .

Testing

pytest
# or using uv
uv run pytest

License

This project is licensed under the MIT License - see the LICENSE file for details.

Metadata

Release files for macos-junk-cleaner 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for macos-junk-cleaner 1.0.0
File Size Uploaded
macos_junk_cleaner-1.0.0.tar.gz 6.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for macos-junk-cleaner 1.0.0
File Interpreter ABI Platform
macos_junk_cleaner-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.6 kB

Release files / macos_junk_cleaner-1.0.0.tar.gz

Download URL macos_junk_cleaner-1.0.0.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a2d756763356bdd4d23a6c97ce78ef051f3b373962166b4af5fb7994663d57b5
BLAKE2b-256 checksum
How to use checksums
2be260dc39b038b6afbb28865e4213d6f4a066016f9c18f404187ed21c40c4f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 31, 2025.

Transparency log

Release files / macos_junk_cleaner-1.0.0-py3-none-any.whl

Download URL macos_junk_cleaner-1.0.0-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
125adbd8e68c3acb53d0a7753720c0b212ea655df2ad000851133ad2dac5d885
BLAKE2b-256 checksum
How to use checksums
937a21f9dbbfa468a7780d3231ed901e1709290aedc342fa5968df6bded17606
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 31, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page