Text this: A model code for the radiative theta pinch