discogs-xml2db converts Discogs XML dumps into CSV for database import. The primary implementation is Python; there is an experimental .NET parser under alternatives/dotnet.
discogsxml2db/: core Python exporter coderun.py: CLI entrypoint (docopt)tests/: pytest suite and fixturesmysql/,postgresql/: import scriptsalternatives/dotnet/: experimental C# parser/exportertmp/: typical location for downloaded dump files (do not commit large dumps)
- Python 3.6+ is required.
- Install runtime deps:
pip install -r requirements.txt. - For tests and linting:
pip install -r requirements-dev.txt.
- Show CLI usage:
python run.py --help - Run exporter:
python run.py [--bz2] [--apicounts] [--export <entity>...] --output <dir> <dump-dir | dump-files...> - Run tests:
python -m pytest
- Keep changes minimal and avoid drive-by reformatting.
- Respect the 120-character line limit from
setup.cfg. - Prefer existing patterns in the codebase (e.g., argument handling in
run.pyanddiscogsxml2db/exporter.py). - Be cautious with performance-sensitive paths; these dumps are large in real usage.
- Keep changes scoped to
alternatives/dotnetand follow that project’s README.