trackloom
trackloom is a safe CLI for comparing two music libraries and merging tracks
from library A into library B without overwriting existing files or deleting
data.
It extracts normalized artist, album, and song fields from file paths and
embedded tags, compares exact and fuzzy matches, builds a copy/add plan, lets
you review ambiguous matches, and applies the plan with dry-run and reporting
support.
Why use it
- Safe by default: no overwrite, no delete, confirmation required for writes
- Workflow-oriented:
compare,plan,review,apply - Handles fuzzy matching and duplicate preference logic
- Supports dry-run, JSON output, reports, and quarantine-based replacement flow
- Works with common music formats via
mutagen
Install
From PyPI:
python3 -m pip install trackloom
From a source checkout:
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install --upgrade pip setuptools wheel
python3 -m pip install -e .
After install:
trackloom help
Quickstart
trackloom compare /path/to/A /path/to/B --json > /tmp/compare.json
trackloom plan /path/to/A /path/to/B --write-plan-json /tmp/plan.json
trackloom review /path/to/A /path/to/B --decisions-file /tmp/decisions.json \
--write-plan-json /tmp/reviewed-plan.json
trackloom apply /path/to/A /path/to/B --from-plan-json /tmp/reviewed-plan.json --dry-run
For a real run, replace the final command with --yes after checking the plan
and dry-run output.
Commands
parse: catalog parsed fields from one or two directoriescompare: find exact and fuzzy matches and recommended actionsplan: build copy/add operations to bring A into Breview: resolvemanual_reviewitems interactivelyapply: execute the plan safely, with dry-run and reportsdoctor: run environment and CLI diagnostics
Safety model
- Existing destination files are never overwritten.
- Delete operations are never performed.
- Replacement cleanup is quarantine-only and only applies to
replace_in_b_with_a. - Real writes require confirmation by default.
applycontinues past per-file I/O failures and reports them.
Docs
- CLI workflow and command details:
docs/CLI.md - Machine-readable contract surface:
docs/CONTRACTS.md - Architecture overview:
docs/ARCHITECTURE.md - Troubleshooting:
docs/TROUBLESHOOTING.md - ADR index:
adr/README.md - Release checklist:
RELEASE.md - Contribution guide:
CONTRIBUTING.md
Development
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install --upgrade pip setuptools wheel
python3 -m pip install -e .[dev]
python3 -m ruff check .
python3 -m ruff format .
python3 -m pytest -q
Dependency Lockfile
requirements.txt is the pinned runtime lockfile generated from
pyproject.toml. It exists for reproducible installs and dependency scanners
such as Aikido.
Regenerate it with:
make lock
License
This project is licensed under the GNU General Public License v3.0 or later
(GPL-3.0-or-later). See LICENSE.
Built by Dan Getz, Jr.
Metadata
Release files for trackloom 0.1.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 |
|---|---|---|---|---|
| trackloom-0.1.0.tar.gz | 62.6 kB | Without provenance | Details for trackloom-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| trackloom-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for trackloom-0.1.0-py3-none-any.whl |
Total release size: 110.5 kB
Release files / trackloom-0.1.0.tar.gz
| Download URL | trackloom-0.1.0.tar.gz |
|---|---|
| Size | 62.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6bb020b569fc9ffbad9002799ce74638b28dcd92ba5fbe00f8a07a12d5a785a8
|
|
BLAKE2b-256 checksum How to use checksums |
501071b3beb6a3d3238620ab9327557690efcc209ea689e1f6fb20f8a5bf8f84
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.8.2
|
Release files / trackloom-0.1.0-py3-none-any.whl
| Download URL | trackloom-0.1.0-py3-none-any.whl |
|---|---|
| Size | 48.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7078782a8d68d7f156533b67d128a99e099a6741dfd85ccaf3be612c17547db5
|
|
BLAKE2b-256 checksum How to use checksums |
ed42fc9390f1010bd4477f06f7795a1b4c0fba3c0360cad7b8f37296453cbc02
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.8.2
|
Security for trackloom 0.1.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.