Module edna.emit.StdoutEmit

Expand source code
from edna.emit import BaseEmit

from sys import stdout

class StdoutEmit(BaseEmit):
    """An Emitter that writes to stdout"""
    def write(self, message: str):
        """Writes the message to the standard output. Ideally, the message should be a string. THis is useful only for debugging.

        Args:
            message (str): The message to write
        """
        print(message, file=stdout)

        

Classes

class StdoutEmit (serializer: Serializable, *args, **kwargs)

An Emitter that writes to stdout

Initializes the BaseEmit. This must be called by any inheriting classes using super().__init__()

Args

serializer : Serializable
Serializer to use during emitting a record.
Expand source code
class StdoutEmit(BaseEmit):
    """An Emitter that writes to stdout"""
    def write(self, message: str):
        """Writes the message to the standard output. Ideally, the message should be a string. THis is useful only for debugging.

        Args:
            message (str): The message to write
        """
        print(message, file=stdout)

Ancestors

Methods

def write(self, message: str)

Writes the message to the standard output. Ideally, the message should be a string. THis is useful only for debugging.

Args

message : str
The message to write
Expand source code
def write(self, message: str):
    """Writes the message to the standard output. Ideally, the message should be a string. THis is useful only for debugging.

    Args:
        message (str): The message to write
    """
    print(message, file=stdout)

Inherited members