metricq-python icon indicating copy to clipboard operation
metricq-python copied to clipboard

HistoryResponse iterator should be able to be traversed multiple times

Open bmario opened this issue 3 years ago • 0 comments

The following code should work:

c = HistoryClient(...)
await c.connect()
response = await c.history_raw_timeline(...)
data = [(timestamp, value) for timestamp, value in response]
assert len(data) > 0
data = [(timestamp, value) for timestamp, value in response]
assert len(data) > 0 # this fails :(

This makes MetricQ hard to use in jupyter notebooks

bmario avatar Aug 01 '22 14:08 bmario

Hello. Thank you for your feedback. Tomorrow I will make a document about the installation and upload it. 🙂

muki01 avatar Mar 27 '24 00:03 muki01