blob: 446f1e0fee493a555798d14ac1f3708d6b1cce3f [file] [log] [blame]
Anthony DiGirolamo26ed98a2021-06-11 14:50:29 -07001.. _module-pw_console:
2
3----------
4pw_console
5----------
6
7The Pigweed Console provides a Python repl (read eval print loop) using
Anthony DiGirolamo8a498802021-06-14 23:52:42 -07008`ptpython`_ and a log message viewer in a single-window terminal based
9interface. It is designed to be a replacement for `IPython's embed()`_ function.
10
Anthony DiGirolamo46440992021-07-19 16:07:47 -070011Features
Anthony DiGirolamo546619f2021-07-22 17:44:04 -070012========
Anthony DiGirolamo46440992021-07-19 16:07:47 -070013
Anthony DiGirolamo546619f2021-07-22 17:44:04 -070014``pw_console`` aims to be a complete solution for interacting with hardware
15devices using :ref:`module-pw_rpc` over a :ref:`module-pw_hdlc` transport.
16
17- Interactive Python repl and log viewer in a single terminal window. This
18 provides interactive RPC sending while the log viewer provides immediate
19 feedback on device status.
Anthony DiGirolamo8a498802021-06-14 23:52:42 -070020
21- Easily embeddable within a project's own custom console. This should allow
22 users to define their own transport layer.
23
Anthony DiGirolamo8a498802021-06-14 23:52:42 -070024- Log viewer with searching and filtering.
25
Anthony DiGirolamo46440992021-07-19 16:07:47 -070026Contributing
27============
Anthony DiGirolamo8a498802021-06-14 23:52:42 -070028
Anthony DiGirolamo46440992021-07-19 16:07:47 -070029- All code submissions to ``pw_console`` require running the
30 :ref:`module-pw_console-testing`.
Anthony DiGirolamo26ed98a2021-06-11 14:50:29 -070031
Anthony DiGirolamo46440992021-07-19 16:07:47 -070032- Commit messages should include a ``Testing:`` line with the steps that were
33 manually run.
Anthony DiGirolamo26ed98a2021-06-11 14:50:29 -070034
Anthony DiGirolamo46440992021-07-19 16:07:47 -070035Guides
36======
Anthony DiGirolamo26ed98a2021-06-11 14:50:29 -070037
Anthony DiGirolamo46440992021-07-19 16:07:47 -070038.. toctree::
39 :maxdepth: 1
Anthony DiGirolamof53188a2021-06-29 09:57:07 -070040
Anthony DiGirolamo546619f2021-07-22 17:44:04 -070041 py/pw_console/docs/user_guide
Anthony DiGirolamo46440992021-07-19 16:07:47 -070042 embedding
43 testing
44 internals
Anthony DiGirolamof53188a2021-06-29 09:57:07 -070045
Anthony DiGirolamo8a498802021-06-14 23:52:42 -070046
47.. _IPython's embed(): https://ipython.readthedocs.io/en/stable/interactive/reference.html#embedding
48.. _IPython: https://ipython.readthedocs.io/
Anthony DiGirolamo8a498802021-06-14 23:52:42 -070049.. _prompt_toolkit: https://python-prompt-toolkit.readthedocs.io/
50.. _ptpython: https://github.com/prompt-toolkit/ptpython/
Anthony DiGirolamo46440992021-07-19 16:07:47 -070051