Skip to content

Standard out

StandardOutOutput

Bases: Output

Output to standard out. Useful for testing and debugging.

Plugin name: standard_out

Example configuration

.. code-block:: yaml

- name: standard_out
Source code in stac_generator/plugins/outputs/standard_out.py
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
class StandardOutOutput(Output):
    """
    Output to standard out.
    Useful for testing and debugging.

    **Plugin name:** ``standard_out``

    Example configuration:
        .. code-block:: yaml

            - name: standard_out
    """

    def export(self, data: dict, **kwargs) -> None:
        """
        Print the received data.

        :param data: Data from extraction process
        :param kwargs: Not used
        """
        pp = pprint.PrettyPrinter(indent=4)
        pp.pprint(data)

export(data, **kwargs)

Print the received data.

:param data: Data from extraction process :param kwargs: Not used

Source code in stac_generator/plugins/outputs/standard_out.py
26
27
28
29
30
31
32
33
34
def export(self, data: dict, **kwargs) -> None:
    """
    Print the received data.

    :param data: Data from extraction process
    :param kwargs: Not used
    """
    pp = pprint.PrettyPrinter(indent=4)
    pp.pprint(data)