questdb / py-questdb-client

Python client for QuestDB InfluxDB Line Protocol
https://py-questdb-client.readthedocs.io
Apache License 2.0
50 stars 7 forks source link

docs: Add ticking data example with timer-based flushing. #7

Closed marregui closed 1 year ago

marregui commented 1 year ago

Through an interaction with a user I realised that the current examples do not show how to use the api in the context of a use case. For basic, the use case is until control C is hit (or intellij stop) rows are sent representing some market transaction between two parties. For buffer, an assortment of sensors produce a signal that is captured and sent as a row, until control C is hit.

amunra commented 1 year ago

The example code is good, but I think these would be best suited to additional examples: These are valuable showing how to drive the API dynamically, but I think they aren't as direct and as easy to follow.

The server / port arguments in the example function, on the other hand, is a great idea for all examples as it gives us a way to drive the examples from the test cases in the future.