Files
OpenBB/cli/openbb_cli/outputs/base.py
Danglewood 869cfed125 [Release] openbb-v5.0.0 (#7741)
* merge branch develop with main

* bump desktop version

* fix the merge

* sync Cargo.lock to desktop 2.0.0

* fix cli conftest.py

---------

Co-authored-by: deeleeramone <>
2026-09-29 10:58:44 -07:00

29 lines
712 B
Python

"""Base output adapter protocol."""
from typing import Any, Protocol
class OutputAdapter(Protocol):
"""Protocol for output adapters."""
def display(
self,
data: Any,
title: str = "",
export: bool = False,
chart: bool = False,
) -> None:
"""Display data in the adapter's format.
Parameters
----------
data : Any
Data to display - can be OBBject, DataFrame, Series, dict, list, scalar, etc.
title : str
Title for the output
export : bool
Whether we are exporting (don't display if True)
chart : bool
Whether to display as chart if available
"""