color_tools.importers.registry
Typed registries for palette and filament import formats.
- color_tools.importers.registry.detect_filament_importer(input_path)[source]
Detect the filament importer for a file by extension and contents.
- Return type:
- Parameters:
input_path (Path | str)
- color_tools.importers.registry.detect_importer(input_path)[source]
Detect the palette importer for a file by extension and contents.
- Return type:
- Parameters:
input_path (Path | str)
- color_tools.importers.registry.get_filament_importer(format_name)[source]
Create a filament importer by registered format name.
- Return type:
- Parameters:
format_name (str)
- color_tools.importers.registry.get_filament_importers_for_extension(extension, *, available_only=True)[source]
Return filament importers registered for a file extension.
- Return type:
- Parameters:
- color_tools.importers.registry.get_importer(format_name)[source]
Create a palette importer by registered format name.
- Return type:
- Parameters:
format_name (str)
- color_tools.importers.registry.get_importers_for_extension(extension, *, available_only=True)[source]
Return palette importers registered for a file extension.
- Return type:
- Parameters:
- color_tools.importers.registry.import_filaments(input_path, *, format_name=None)[source]
Import filament transfer data using explicit or automatic selection.
- Return type:
- Parameters:
- color_tools.importers.registry.import_palette(input_path, *, format_name=None)[source]
Import palette transfer data using explicit or automatic selection.
- Return type:
- Parameters:
- color_tools.importers.registry.list_filament_import_formats(*, available_only=True)[source]
List registered filament import formats and descriptions.
- color_tools.importers.registry.list_import_formats(*, available_only=True)[source]
List registered palette import formats and descriptions.
- color_tools.importers.registry.register_filament_importer(cls)[source]
Register a filament importer class and return the original class.
- Return type:
- Parameters:
cls (type[FilamentImporter])
- color_tools.importers.registry.register_importer(cls)[source]
Register a palette importer class and return the original class.
- Return type:
- Parameters:
cls (type[PaletteImporter])