src.integrations.kanban_factory module#

Factory for creating kanban provider instances.

Simplifies the process of creating the right kanban provider based on configuration.

class src.integrations.kanban_factory.KanbanFactory[source]#

Bases: object

Factory for creating kanban provider instances.

static create(provider, config=None)[source]#

Create a kanban provider instance.

Parameters:
  • provider (str) – Provider name (‘planka’, ‘linear’, ‘github’)

  • config (Optional[Dict[str, Any]]) – Optional configuration override

Returns:

KanbanInterface implementation

Return type:

KanbanInterface

Raises:

ValueError – If provider is not supported

static get_default_provider()[source]#

Get the default provider from configuration.

Return type:

str

static create_default(config=None)[source]#

Create the default kanban provider.

Return type:

KanbanInterface

Parameters:

config (Dict[str, Any] | None)