Open yegorich opened 4 years ago
xmodem/__init__.py provides a main function. As far as I can see, it does not use pyserial to send/receive data but sz and rz utilities.
xmodem/__init__.py
sz
rz
Are you planning to rewrite it to use the internal functions only?
It would be also useful if this utility could be used as follows:
python3 -m xmodem send filename filename
i.e. the way you can use some python classes:
python3 -m http.server 8888
I like the idea but I don't see how we can add unit tests for that so I'm hesitant to implement this without having a way to test.
Maybe make them act like rz/sz from lrzsz? They work via stdin/stdout, and then test just connect them via pipe(). I think it's will be usefull as lrzsz alternative.
rz/sz
pipe()
lrzsz
xmodem/__init__.py
provides a main function. As far as I can see, it does not use pyserial to send/receive data butsz
andrz
utilities.Are you planning to rewrite it to use the internal functions only?
It would be also useful if this utility could be used as follows:
python3 -m xmodem send filename filename
i.e. the way you can use some python classes:
python3 -m http.server 8888