api(consumer): add get_stream_info and get_last_stream
The code is mostly copied from the producer implementation. Unlike the
producer Python API, the consumer Python API functions follow the usual
naming conventions and start with get*
. The producer API functions
should be renamed to match the consumer names in a followup commit.
The commit slightly refactors the producer code and removes the
internally used StreamRequestOp
enum.
Fixes #38 (closed)
Edited by Tim Schoof