def init_txt(iterable):
    """
    Read lines of text from ``iterable`` and yield dicts with the line data
    stored in the ``@message`` field.

    >>> data_in = ["hello\\n", "world\\n"]
    >>> data_out = init_txt(data_in)
    >>> [x for x in data_out]
    [{'@message': 'hello'}, {'@message': 'world'}]
    """
    for line in iterable:
        txt = line.rstrip('\n')
        yield {'@message': txt}
