{"id":26193282,"url":"https://github.com/sandy-sp/metadata-cleaner","last_synced_at":"2026-05-10T06:04:57.313Z","repository":{"id":275237377,"uuid":"925224904","full_name":"sandy-sp/metadata-cleaner","owner":"sandy-sp","description":"Metadata Cleaner – A CLI tool to remove metadata from images, PDFs, DOCX, audio, and video files.   Privacy-focused, fast, and open-source. Supports batch processing \u0026 standalone executables.","archived":false,"fork":false,"pushed_at":"2025-03-13T00:02:57.000Z","size":403189,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-15T02:52:46.522Z","etag":null,"topics":["cli","file-cleaner","metadata","metadata-removal","open-source","privacy","python","security"],"latest_commit_sha":null,"homepage":"https://github.com/sandy-sp/metadata-cleaner","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/sandy-sp.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-31T13:26:23.000Z","updated_at":"2025-04-03T09:30:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"00ecdb9e-91d7-4cdd-b5bc-ce12fc308843","html_url":"https://github.com/sandy-sp/metadata-cleaner","commit_stats":null,"previous_names":["sandy-sp/metadata-cleaner"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandy-sp%2Fmetadata-cleaner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandy-sp%2Fmetadata-cleaner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandy-sp%2Fmetadata-cleaner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandy-sp%2Fmetadata-cleaner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sandy-sp","download_url":"https://codeload.github.com/sandy-sp/metadata-cleaner/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248997087,"owners_count":21195797,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["cli","file-cleaner","metadata","metadata-removal","open-source","privacy","python","security"],"created_at":"2025-03-12T01:38:03.836Z","updated_at":"2026-05-10T06:04:57.308Z","avatar_url":"https://github.com/sandy-sp.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Metadata Cleaner\n\n[![CI](https://github.com/sandy-sp/metadata-cleaner/actions/workflows/ci.yml/badge.svg)](https://github.com/sandy-sp/metadata-cleaner/actions/workflows/ci.yml)\n[![Release](https://img.shields.io/github/release/sandy-sp/metadata-cleaner.svg)](https://github.com/sandy-sp/metadata-cleaner/releases)\n[![PyPI version](https://badge.fury.io/py/metadata-cleaner.svg)](https://pypi.org/project/metadata-cleaner/)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)\n\nMetadata Cleaner is a privacy-focused CLI for viewing and removing metadata from\nlocal files. It writes cleaned copies by default and avoids modifying originals\nin-place.\n\n## Supported Files\n\n- Images: JPG, JPEG, PNG, TIFF, WEBP, AVIF\n- Documents: PDF, DOCX, TXT\n- Audio: MP3, WAV, FLAC, OGG, AAC, M4A, WMA\n- Video: MP4, MKV, MOV, AVI, WEBM, FLV\n\nVideo support requires `ffmpeg` and `ffprobe`. AVIF and broader metadata\ncoverage benefit from `exiftool`.\n\n## Installation\n\nRequires Python 3.11 or newer.\n\n```bash\npip install metadata-cleaner\nmetadata-cleaner --help\n```\n\nFor development:\n\n```bash\ngit clone https://github.com/sandy-sp/metadata-cleaner.git\ncd metadata-cleaner\npoetry install --with dev\npoetry run metadata-cleaner --help\n```\n\n## CLI Usage\n\nView metadata:\n\n```bash\nmetadata-cleaner view sample.jpg\n```\n\nRemove metadata from one file:\n\n```bash\nmetadata-cleaner delete sample.jpg\n```\n\nWrite to a specific file:\n\n```bash\nmetadata-cleaner delete sample.jpg --output cleaned/sample.jpg\n```\n\nProcess a folder recursively:\n\n```bash\nmetadata-cleaner delete ./photos --output ./cleaned-photos\n```\n\nPreview a run without writing files:\n\n```bash\nmetadata-cleaner delete ./photos --dry-run\n```\n\nEdit metadata where supported:\n\n```bash\nmetadata-cleaner edit song.mp3 --changes '{\"artist\": \"Unknown\"}'\n```\n\n## Development Checks\n\n```bash\npython3 manage.py test\npython3 manage.py lint\npython3 manage.py check\n```\n\nCI runs tests, lint, and `pip-audit` on pull requests and pushes to `main`.\n\n## Docker\n\n```bash\ndocker build -t metadata-cleaner .\ndocker run --rm -v \"$(pwd)/photos:/data\" metadata-cleaner delete /data\n```\n\n## Logging\n\nBy default, logs go to stderr only. To write a log file, opt in explicitly:\n\n```bash\nMETADATA_CLEANER_LOG_FILE=./metadata-cleaner.log metadata-cleaner delete sample.jpg\n```\n\nUse debug logging when needed:\n\n```bash\nMETADATA_CLEANER_LOG_LEVEL=DEBUG metadata-cleaner view sample.jpg\n```\n\n## Resources\n\n- [API Reference](docs/API_REFERENCE.md)\n- [Usage Guide](docs/USAGE.md)\n- [Architecture](docs/ARCHITECTURE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsandy-sp%2Fmetadata-cleaner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsandy-sp%2Fmetadata-cleaner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsandy-sp%2Fmetadata-cleaner/lists"}