graphyte: Make "make test" python 2/3 compatible.

python2 is deprecated in 2020.

(1) Use list instead of map function to create lists.
(2) Decodes bytes input from socket to string.
(3) Encodes string output to socket to bytes.
(4) Adapts inspect library behavior changes.
(5) Replace iteritems() with items().
(6) Import packages from six.moves.
(7) Use python3 print function syntax.

TEST=make test PYTHON=python2; make test PYTHON=python3

Change-Id: I82dcf6efa00da4d7cb6e9f1ec63101c027f00047
Commit-Queue: Cheng Yueh <>
Tested-by: Cheng Yueh <>
Reviewed-by: Mike Frysinger <>
Reviewed-by: Yong Hong <>
24 files changed
tree: 068a93a9d64357042300153808eb9309ee5fee5c
  1. .gitignore
  2. .local.vimrc
  4. Makefile
  7. devtools/
  8. doc/
  9. graphyte/
  10. pylintrc

Google Radio Phy Test Framework


Graphyte (Google RAdio PHY TEst) is a Python based software framework for the calibration and verification of wireless connectivity radios in design and manufacturing. It is designed with an open, extensible architecture enabling wireless silicon and instrumentation vendors to develop their own plugins for PHY calibration and verification. The initial focus is on Wi-Fi and Bluetooth with 802.15.4 on the horizon.

Please refer to the user manual for more details.

Flow chart


No build step is required.


Two options:

$ (sudo) make install


$ (sudo) pip install .


$ (sudo) pip uninstall graphyte


  1. Create a tarball by: make dist The tarball can be found under the folder ‘dist’

  2. Copy the tarball to target machine

  3. Extract the tarball

  4. Inside the extracted folder, type the command to install:

     $ (sudo) pip install

User manual

Please find the user manual here for more details.

Interactive shell

An interactive shell is also implemented to analyze the interactions between a DUT and an instrument step by step.

Follow these steps to start the interactive shell:

  1. Install the graphyte framework and necessary plugins.

  2. Follow the user manual to create a valid config file.

  3. Run the interactive shell by:

    $ python -m graphyte.plugin_shell path/to/config/file