-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated Matter Python REPL #11563
Updated Matter Python REPL #11563
Conversation
This resurrects the chip-repl to be more usable and user-friendly, especially around how pretty printing, help text/documentation are generated. Notably, it leverages the 'rich' module to: - Provide capabilities to inspect the methods/values in any given class/module. - Pretty printing of cluster objects.
PR #11563: Size comparison from a04576d to 646e94a Decreases (1 build for esp32)
Full report (38 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome
Document update? ninja: Entering directory `./out/debug' See this error, you miss this file ChipReplStartup.py? forget to add it? |
PR #11563: Size comparison from 8f23aa6 to 3b62ae5 Full report (38 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
|
* Updated CHIP REPL! This resurrects the chip-repl to be more usable and user-friendly, especially around how pretty printing, help text/documentation are generated. Notably, it leverages the 'rich' module to: - Provide capabilities to inspect the methods/values in any given class/module. - Pretty printing of cluster objects. * Missed a file * Restyled
This resurrects the chip-repl to be more usable and user-friendly, especially around how pretty printing, help text/documentation are generated within iPython.
Notably, it leverages the 'rich' module to:
- Provide capabilities to inspect the methods/values in any given
class/module.
- Pretty printing of cluster objects.
Some notable screen-shots are below.
The new
matterhelp()
command:Pretty-printing cluster objects, including nested structs/lists with correct typing information:
Inspecting cluster objects to understand the types of their various fields: