Suppose that there is a deep neural network running on a server, you may want to know the training progress in time and adjust parameters based on the output. ItChatSh makes it convenient to communicate between running python programs and your cellphone(by WeChat). ItChatSh is based on ItChat.
- use setuptools
python3 setup.py install
- use pip (recommanded)
pip3 install itchatsh
import itchatsh
import os
import time
@itchatsh.register("ls")
def ls(path="."):
return "\n".join(os.listdir(path))
if __name__ == '__main__':
itchatsh.start(hotReload=True, block_thread=True)
There are more examples in ./example/