databay.outlets.print_outlet

class databay.outlets.print_outlet.PrintOutlet(only_payload: bool = False, skip_update: bool = False, *args, **kwargs)[source]

databay.outlets.print_outlet.PrintOutlet

Outlet that will print all records one by one.

Parameters
  • only_payload (bool) – If True, prints only the payload of records.

  • skip_update (bool) – If True, Update prefix will not be added to the print.

Bases: databay.outlet.Outlet

push(self, records: [Record], update)[source]

async

Prints the records.

Parameters
  • records (list[Record]) – List of records generated by inlets. Each top-level element of this array corresponds to one inlet that successfully returned data. Note that inlets could return arrays too, making this a nested array.

  • update (Update) – Update object representing the particular Link update run.