Skip to content

Standard out

StandardOutBulkOutput

Bases: BulkOutput

Outputs to standard out. Useful for testing and debugging.

Plugin name: standard_out_bulk

Example configuration

.. code-block:: yaml

- name: standard_out_bulk
  conf:
    cache_max_size: 10
Source code in stac_generator/plugins/bulk_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 StandardOutBulkOutput(BulkOutput):
    """
    Outputs to standard out.
    Useful for testing and debugging.

    **Plugin name:** ``standard_out_bulk``

    Example configuration:
        .. code-block:: yaml

            - name: standard_out_bulk
              conf:
                cache_max_size: 10
    """

    def export(self, data_list: list) -> None:
        """
        Print the data if cache is full.

        :param data: expected data
        """
        print(json.dumps(data_list, indent=4))

export(data_list)

Print the data if cache is full.

:param data: expected data

Source code in stac_generator/plugins/bulk_outputs/standard_out.py
28
29
30
31
32
33
34
def export(self, data_list: list) -> None:
    """
    Print the data if cache is full.

    :param data: expected data
    """
    print(json.dumps(data_list, indent=4))