Get all preset IDs including corrupted entries. Lightweight method that returns IDs without deep-copying metadata. Use this when you only need to check which presets are tracked. Returns: Set of preset IDs (includes corrupted entries)
(self)
| 481 | } |
| 482 | |
| 483 | def keys(self) -> set: |
| 484 | """Get all preset IDs including corrupted entries. |
| 485 | |
| 486 | Lightweight method that returns IDs without deep-copying metadata. |
| 487 | Use this when you only need to check which presets are tracked. |
| 488 | |
| 489 | Returns: |
| 490 | Set of preset IDs (includes corrupted entries) |
| 491 | """ |
| 492 | packs = self.data.get("presets", {}) or {} |
| 493 | if not isinstance(packs, dict): |
| 494 | return set() |
| 495 | return set(packs.keys()) |
| 496 | |
| 497 | def list_by_priority(self, include_disabled: bool = False) -> List[tuple]: |
| 498 | """Get all installed presets sorted by priority. |