metricq / metricq-python

🐍 The MetricQ Python interface
https://metricq.github.io/metricq-python/
BSD 3-Clause "New" or "Revised" License
18 stars 7 forks source link

feat: Context manager support for metricq.Client #132

Closed bmario closed 2 years ago

bmario commented 2 years ago

This change allows using all Clients in with-statements. The connection will be opened and closed appropriately.

It is helpful for jupyter-notebooks, where it feels pretty opaque when the connection is running.