macOS Junk Cleaner
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)
- Clone the repository.
- Sync the environment (creates venv and installs all dependencies and dev tools):
uv sync - 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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| macos_junk_cleaner-1.0.0.tar.gz | 6.6 kB | With provenance | Details for macos_junk_cleaner-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| macos_junk_cleaner-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for macos_junk_cleaner-1.0.0-py3-none-any.whl |
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 logRelease 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 logSecurity for macos-junk-cleaner 1.0.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for macos_junk_cleaner-1.0.0.tar.gz
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 logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.