{'name': 'markdown_to_html', 'description': '\nMarkdown to HTML transformation module for Information Matrix.\n\nThis module converts Markdown text to HTML with configurable styling.\n', 'has_make_config': True, 'has_apply': True}

Transformation module for Information Matrix.

{'name': 'compression', 'description': '\nCompression module for Information Matrix.\n\nThis module applies various compression techniques to content.\n', 'has_make_config': True, 'has_apply': True}

Transformation module for Information Matrix.

{'name': 'rot13', 'description': '\nROT13 transformation module for Information Matrix.\n\nThis module applies the ROT13 cipher to text content.\n', 'has_make_config': True, 'has_apply': True}

Transformation module for Information Matrix.

About Modules

Modules are pluggable transformations that can be applied to blocks in the Information Matrix system. Each module takes a block's content as input and produces a transformed version as output.

Key characteristics of modules:
  • Deterministic: Given the same input and seed, a module always produces the same output
  • Chainable: Multiple modules can be applied in sequence
  • Configurable: Modules can have configurations that affect their behavior
Creating Custom Modules:

You can create your own modules by adding Python files to the modules directory. Each module must implement two functions:

def make_config(rng):
    """Generate configuration using a seeded random number generator."""
    return {
        "parameter1": rng.randint(1, 10),
        "parameter2": rng.choice(["option1", "option2"])
    }

def apply(block_data, config):
    """Transform the block data using the configuration."""
    # Process the data...
    return transformed_data