A parser using the parsegrammar library to create automated bots for command line programs.
An example of this code can be found in the following projects:
- VPN Bot
Pip installation is reccommended
pip install -u pexpectparser
Or if you are using PipEnv
pipenv shell
pipenv install pexpectparser
import pexpectParser as pp
parser = pp.Parser(<Grammar>)
where <Grammar>
is a Grammar Object from the Parse Grammar Library.
- for more information about
<Grammar>
objects, see parsegrammar
process = parser.run()
where type(process)
is <class 'pexpect.pty_spawn.spawn'>
,
- meaning that
process
is an object returned frompexpect.spawn(<cmd>)
- Timeout Error
- Class pexpect.exceptions.TIMEOUT
- EOF Error
- Class pexpect.exceptions.EOF
This project has the following dependencies: