Should I try PyBBIO ?

Hi all,
does anyone use the PyBBIO library (https://github.com/graycatlabs/PyBBIO) ?

I am not sure it is actively maintained.

  1. there is no single unit test
  2. when I run ‘library_test.py’ it fails with an import error
  3. ‘BBIOServer_test.py’ also fails to run
  4. the code is hardly documented
  5. the code does not follow the PEP 8 guideline
  6. I created an issue but there is no reply for more then a week

Which Python library would you recommend to use for SPI ?

Cheers,
Andrey

Hi all,
does anyone use the PyBBIO library (https://github.com/graycatlabs/PyBBIO) ?

I am not sure it is actively maintained.

It is (the commit history is a good place to look for that)

  1. there is no single unit test

It’s not exactly trivial to unit test software that interfaces with external hardware. Jason Kridner and I have been working on a unit test cape for this purpose. It’s on the way, so we’ll have a standard test jig soon and will be able to add unit tests to PyBBIO and Bonescript.

  1. when I run ‘library_test.py’ it fails with an import error

That’s a good time to open an issue on Github. It should be fixed now.

  1. ‘BBIOServer_test.py’ also fails to run

Again, an issue would be good. It runs for me, so if you can open an issue telling me what image you’re running and what kernel version I can start to help you with that.

  1. the code is hardly documented

What code are you trying to understand? If I’m missing some docs somewhere I’d love to know about it.

  1. the code does not follow the PEP 8 guideline

Nope, it follows the PyBBIO guideline :wink:

  1. I created an issue but there is no reply for more then a week

I do my best to respond quickly, but there’s just one of me so that can happen, sorry about that.

Which Python library would you recommend to use for SPI ?

I recently updated the SPI driver in PyBBIO, I’d recommend it :wink:

Thank you for the information.

I am also evaluation another Python library to see which one is easier to use for SPI.

Cheers,
Andrey