image_transformer.commands package
Submodules
image_transformer.commands.helpers module
This module contains helper dictionaries for image generation and transformation commands.
image_transformer.commands.image_generator module
This module provides a command-line interface (CLI) command for generating images with specified dimensions, colors, and processing options. The command is created using the Click library and allows users to specify various parameters for image generation.
- image_transformer.commands.image_generator.image_generator_command_factory(configurations: dict, image_processors_keys: list[str], _pixels_processors_keys: list[str], outputs_builders_keys: list[str])[source]
Factory function to create the image generator command.
- Parameters:
configurations (dict) – Configuration dictionary containing default values for the command options.
image_processors_keys (list[str]) – List of available image processor keys.
pixels_processors_keys (list[str]) – List of available pixels processor keys.
outputs_builders_keys (list[str]) – List of available output builder keys.
- Returns:
The image generator command function.
- Return type:
function
image_transformer.commands.image_transformer module
This module defines a command-line interface (CLI) for transforming images using various processors and builders. It utilizes the Click library to handle command-line arguments and options.
- image_transformer.commands.image_transformer.image_transformer_command_factory(configurations: dict, image_processors_keys: list[str], pixels_processors_keys: list[str], outputs_builders_keys: list[str])[source]
Factory function to create the image transformer command.
- Parameters:
configurations (dict) – Configuration dictionary containing default values.
image_processors_keys (list[str]) – List of available image processor keys.
pixels_processors_keys (list[str]) – List of available pixels processor keys.
outputs_builders_keys (list[str]) – List of available output builder keys.
- Returns:
The image transformer command function.
- Return type:
function
Module contents
Module for initializing image transformation commands. This module provides functionality to initialize and register commands for image generation and transformation based on provided configurations and processor keys.
- image_transformer.commands.initialize_commands(configurations: dict, image_processors_keys: list[str], pixels_processors_keys: list[str], outputs_builders_keys: list[str])[source]
Initialize and register image transformation commands. This function creates and registers commands for image generation and transformation using the provided configurations and processor keys.
- Parameters:
configurations (dict) – Configuration settings for the commands.
image_processors_keys (list[str]) – List of keys for image processors.
pixels_processors_keys (list[str]) – List of keys for pixel processors.
outputs_builders_keys (list[str]) – List of keys for output builders.
- Returns:
The registered commands.
- Return type:
commands