I figured it was time to create a module specifically designed to make writing experiments and test easier. This module is an extension of my other pages. It has the ability to handle one or more cards. It eliminates all the boilerplate code and simplifiers management of the cards.
It just requires the BladeRF Python module directory and Numpy. The rest of the dependencies are built-in Python modules.
You can find the Python bindings for the BladeRF here. You might already have them if you cloned the BladeRF repository from GitHub. You can just copy that directory out and place it relative to your program.
The module can be found at https://github.com/km4kfl/brfharness.
An example of using the module can be found at BladeRF: Curious Case of Being Stumped.