comicbox.formats.metron_api.transform ΒΆ
Metron API transform.
Converts a mokkari Issue.model_dump(mode="json") dict into the comicbox internal schema. The conversion is explicit Python rather than the spec-driven MetaSpec machinery used by the older XML transforms β the source dict has irregular shapes (lists of nested objects, role lists, cross-source ids) that donβt fit the simple key-rename pattern, and inline conversion is easier to follow than fighting glom.
MetronApiTransform ΒΆ
Bases: BaseTransform
Mokkari Issue β comicbox internal schema.
Source code in comicbox/formats/metron_api/transform.py
291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 | |
to_comicbox(data) ΒΆ
Convert a mokkari Issue dict into a validated comicbox dict.
Source code in comicbox/formats/metron_api/transform.py
298 299 300 301 302 303 304 305 306 307 308 309 | |