Purpose of this project is to provide object API to libcec for home-assistant hdmi_cec module as primary goal and to make TCP <=> HDMI bridge to control HDMI devices over TCP network as a secondary goal.
libcec dependency 
libcec must be installed  for
this module to work in direct mode. Follow the installation instructions
for your environment, provided at the link.
libcec installs Python 3
bindings by default as a system Python module. If you are running
pyCEC in a Python virtual
environment, make sure it
can access the system module, by either symlinking it or using the
You can run
pyCEC server which will provide bridge between HDMI CEC port
and TCP network by exexcuting
python3 -m pycec. Server will bind to
9526 on all interfaces.
Then you can connect by client part of
pyCEC without need of libcec or
HDMI port on client's machine. Just use
TcpAdapter instead of
You can also connect to
9526 by NetCat and send CEC commands directly.