.. note:: :class: sphx-glr-download-link-note Click :ref:`here ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_monitoring_msg.py: ========== MSG reader ========== This application demonstrates how to access MSGs from Ligier. .. code-block:: python from __future__ import absolute_import, print_function, division import io import km3pipe as kp __author__ = "Tamas Gal" __email__ = "tgal@km3net.de" def print_msg(blob): data = io.BytesIO(blob['CHData']) print(data) return blob pipe = kp.Pipeline() pipe.attach(kp.io.CHPump, host='localhost', tags='MSG') pipe.attach(print_msg) pipe.drain() **Total running time of the script:** ( 0 minutes 0.000 seconds) .. _sphx_glr_download_auto_examples_monitoring_msg.py: .. only :: html .. container:: sphx-glr-footer :class: sphx-glr-footer-example .. container:: sphx-glr-download :download:`Download Python source code: msg.py ` .. container:: sphx-glr-download :download:`Download Jupyter notebook: msg.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_