RetroLibX
Universal Retro Game Library Converter
RetroLibX migrates ROM references, metadata, artwork, videos, collections, and launch settings between RetroArch, generic EmulationStation, ROCKNIX, ES-DE, and Pegasus. All conversions pass through a typed, platform-neutral intermediate representation rather than point-to-point converters.
Install and run
Python 3.12+ and uv are required.
uv sync
uv run retrolibx detect /path/to/library
uv run retrolibx scan /path/to/library
uv run retrolibx convert /path/to/source --to rocknix --output /path/to/target --dry-run
uv run retrolibx convert /path/to/source --to rocknix --output /path/to/target
For a non-standard RetroArch playlist whose title is stored in another field, select it
explicitly. The original label is still used to match thumbnails:
uv run retrolibx scan /path/to/library --game-name-field core_name
uv run retrolibx convert /path/to/library --to rocknix --output /path/to/target \
--game-name-field core_name
The source is read-only by default. ROM modes are copy, move, symlink (link alias), hardlink, and none; media modes are copy, symlink, and hardlink. Conflict policies are skip, overwrite, rename, error, and newer.
Commands
detect: rank supported source formats.scan: import and summarize a library;--jsonoutputs RLX IR and--hashcalculates ROM hashes.convert: plan and execute a conversion;--dry-runnever writes.inspect: show systems, games, ROMs, and media.validate: report broken paths, unknown systems, duplicates, and malformed metadata.
Aliases: ra → retroarch, es → emulationstation, esde → es-de.
Repository discovery
RetroLibX does not require one fixed repository layout. It recursively discovers .lpl,
gamelist.xml, and metadata.pegasus.txt below the supplied source root (excluding tool and
VCS directories). Referenced ROM and media paths are resolved in this order:
- an existing absolute path;
- a path relative to the metadata file or detected frontend root;
- a path relative to the supplied repository root;
- a unique trailing-path match, which handles stale device roots such as
/storage/roms; - a unique filename match, with semantic directory hints for ROMs, covers, screenshots, videos, and manuals.
Ambiguous filename matches are intentionally left unresolved and reported by validation instead of silently selecting the wrong game or artwork.
Development
uv run pytest --cov
uv run ruff check .
uv run ruff format --check .
uv run mypy src
Architecture and acceptance criteria are documented in specs/v1. Adapters implement detection/import/render only. Rendering returns an ExportIntent; the planner resolves all conflicts and paths; the executor is the sole filesystem writer.
License
RetroLibX is released under the MIT License.
Metadata
Release files for retrolibx 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 |
|---|---|---|---|---|
| retrolibx-0.1.0.tar.gz | 1.5 MB | With provenance | Details for retrolibx-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| retrolibx-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for retrolibx-0.1.0-py3-none-any.whl |
Total release size: 1.6 MB
Release files / retrolibx-0.1.0.tar.gz
| Download URL | retrolibx-0.1.0.tar.gz |
|---|---|
| Size | 1.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3b0152e4cca4b14d2a1422d6ed89701877d83baa0283439f3fe82149d304f93f
|
|
BLAKE2b-256 checksum How to use checksums |
923dbe11bbebe90388759b5a39b37bed29ba86188b46cf2d449fcb02d5f7c316
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Aug 27, 2026.
Transparency logRelease files / retrolibx-0.1.0-py3-none-any.whl
| Download URL | retrolibx-0.1.0-py3-none-any.whl |
|---|---|
| Size | 36.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
83a8b6ffd8ad05053363e35054938bdba5e89f9c5d31e93d035e4131766c5d11
|
|
BLAKE2b-256 checksum How to use checksums |
ad8333f25bd8f33bb07beb9267c467cde204d793ba04bcf7ccbd57a7e76be135
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Aug 27, 2026.
Transparency logSecurity for retrolibx 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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for retrolibx-0.1.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 Aug 27, 2026.
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.