tehmaze / xmodem

XMODEM protocol implementation for Python
https://pypi.org/project/xmodem/
MIT License
97 stars 57 forks source link

Command-line tool #39

Open yegorich opened 4 years ago

yegorich commented 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.

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

tehmaze commented 4 years ago

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.

ramok commented 3 years ago

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.