When standalone command-line applications need to specify a radio device, they generally invent their own set of command-line options for specifying parameters. Frequently, what is available is specific to the hardware the author of the software owned.
I see two possible general solutions to this problem:
A separate Python library which parses a standard set of command-line options (or the value of a single option, for more composability) and provides an operation to apply them to a gr-osmosdr source or sink.
All device parameters (frequency, gains, antenna, agc, iq balance, ...) should be specifiable via the device arguments string.
When standalone command-line applications need to specify a radio device, they generally invent their own set of command-line options for specifying parameters. Frequently, what is available is specific to the hardware the author of the software owned.
I see two possible general solutions to this problem: