python-streamexpect
                                
                                 python-streamexpect copied to clipboard
                                
                                    python-streamexpect copied to clipboard
                            
                            
                            
                        Python library providing cross-platform text matching for generic streams and sockets
The following example was generated in a Reddit discussion and would make an excellent example for the repo: ``` python import streamexpect from subprocess import Popen, PIPE pipe = Popen(r'net...
A general catch-all issue for integrating asyncio ideas into streamexpect. For example, integrating with asyncio.StreamReader and asyncio.StreamWriter, and providing methods for asynchronously waiting on multiple patterns/multiple streams using the asyncio.wait_for...
I'd like there to be a method on expecters to be able to "drain" any immediately-available data. (And/or to drain through EOF, if there's a way to detect EOF.) My...
Right now accessing `SearcherCollection` to expect on a list of multiple patterns is clunky: ``` python pat1 = RegexSearcher('pattern 1') pat2 = RegexSearcher('pattern 2') search = SearcherCollection([pat1, pat2]) with streamexpect.wrap(buf)...
I'd like to add type annotations and static checking with pyright. However, I'm not sure if you can support Python2 with type annotations. Although, Python2 is totally unsupported and deprecated,...