I am trying to set up a TCP client to communicate with an encoder terminal (Heindenhain EIB714). The EIB is basically a server with 1 open port, which listens to commands sent by the client, does its thing and sends data back.
We'll assume that each output is exclusively the result of a client request (glorified echo server?
).
I have already modified the client described in this tutorial (https://realpython.com/python-sockets/#a...and-server) to manage requests and data de/serialization with the EIB. To date the program works as standalone to send a single request but I feel I am missing some knowledge to properly integrate it in a bigger application.
Are there any existing libraries that can help setup a simple client to manage connections and I/O? I've heard of libraries such as zeromq but they seem over-complicated for my usage.
We'll assume that each output is exclusively the result of a client request (glorified echo server?

I have already modified the client described in this tutorial (https://realpython.com/python-sockets/#a...and-server) to manage requests and data de/serialization with the EIB. To date the program works as standalone to send a single request but I feel I am missing some knowledge to properly integrate it in a bigger application.
Are there any existing libraries that can help setup a simple client to manage connections and I/O? I've heard of libraries such as zeromq but they seem over-complicated for my usage.