pipe-io-server/pipe_io_server/clients/python/example.py

8 lines
191 B
Python
Raw Permalink Normal View History

from pipe_io import PipeIO
if __name__ == '__main__':
with PipeIO('in', 'out') as pipeio:
pipeio.reader.message_handler = pipeio.writer.send_message
pipeio.reader.run()