* test: split out test fixtures for long ipv6 traceroute for consistency
* refactor(jc/parsers/traceroute): remove duplicate ParseError class
* refactor(jc/parsers/traceroute): pre-process data in _loads() for easy-to-reuse
* refactor(jc/parsers/traceroute): split hop serialization into separate function to reuse
* refactor(jc/parsers/traceroute): simplify numeric conversion and make it reusable for traceroute_s
* fix(jc/parsers/traceroute): stricter regex to match traceroute headers only
* feat(jc/parsers/traceroute_s): v1.0 implementation
* fix(jc/parsers/traceroute): revert "_" prefix in function and class names
* fixup! fix(jc/parsers/traceroute): revert "_" prefix in function and class names
* chore(jc/parsers/traceroute): update the author information
* add more parsing functionality for transfering state
* add additional/conditional fields into the schema
---------
Co-authored-by: Kelly Brazil <kellyjonbrazil@gmail.com>
This commit fixes the controller parser scheme in order to take care
and extract some extra attributes, the manufacturer and version.
The order of the attributes appearing in the regexp scheme must follow
the order they appear in the `bluetoothctl show` outputs.
A new test has been added to test outputs with these extra attrs.
Co-authored-by: Kelly Brazil <kellyjonbrazil@gmail.com>
* [xrandr] Allow props command
Responding to issue #525
Somewhat substantial rewriting here to make the parser more resilient
- Change parser to not mutate the incoming data list, instead index
- Create `Line` class and `categorize` classmethod
- Every line is categorized and regexed, so it gets dispatched to the
right level of responsibility
* Bump version
---------
Co-authored-by: Kelly Brazil <kellyjonbrazil@gmail.com>
* draft for path_list
* updaate doc
* add input check
* fix types
* fix schema: add missing properties
* add _process
* fix _process docs
* refactor: extract path.py parser
* swap order of names alphabetically
* documentation and comments
* path parser: add early return for nodata
* path and path-list parser: add test and fixtures
* typo in file name
* add early return for nodata
* add test and fixtures
* typo in file name
* rename fixtures
* rename fixtures
* refactor to pathlib.Path
* failing on windows - use PurePosixPath
* changed the way to strip dot from suffix
* add POSIX to path
* test commit to see results on windows is failing
* test commit to see results on windows is failing
* add windows path detection
* somehow Path not like the newline from input line
* add test with more items
* remove debug print
* wrap test loops into into subTest
* remove print statements
* add path and path-list to CHANGELOG
---------
Co-authored-by: Kelly Brazil <kellyjonbrazil@gmail.com>