JamesHutchison / pytest-hot-reloading

A hot reloading pytest daemon, implemented as a plugin
MIT License
89 stars 2 forks source link

Initial work #1

Closed JamesHutchison closed 1 year ago

JamesHutchison commented 1 year ago

Functioning server (daemon) and client.

This uses the built-in XML RPC server for convenience. I'm not too familiar with the library. It has a security warning, so its possible this may need to change to something else. Originally this used sockets, as recommended by GPT4, but I'm under the impression that sockets behave differently between unix and windows and I don't want to deal with that. Likewise, searching for a higher level socket library, I didn't come across something recently maintained.

Another alternative is to use a web server, which is what XML RPC does already, but maybe add a thin layer around it for security purposes. I don't want to add a heavyweight framework for something this trivial, and likewise I don't want, for example, someone who uses django installing flask, or someone who uses flask installing cherrypy.