Skip to content

app_factory

mainsequence.virtualfundbuilder.resource_factory.app_factory

HtmlApp

Bases: BaseApp

A base class for apps that generate HTML output.

__init_subclass__(**kwargs)

Wraps the subclass's run method to add validation and saving logic.

run() abstractmethod

This method should be implemented by subclasses to return HTML content as a string. The base class will handle saving the output.

register_app(name=None, register_in_agent=True)

Decorator to register a model class in the factory. If name is not provided, the class's name is used as the key.