python-zk / kazoo

Kazoo is a high-level Python library that makes it easier to use Apache Zookeeper.
https://kazoo.readthedocs.io
Apache License 2.0
1.3k stars 387 forks source link

Context manager for kazoo client #474

Open brabiega opened 7 years ago

brabiega commented 7 years ago

Hello,

I think it would be quite useful to add context manager for kazoo client. Usually I use the client with a flow typical to context manager:

  1. Start kazoo client
  2. Do something
  3. Close the client

Did I overlook something? :) What do you think? Is it worth implementing?

eshepelyuk commented 7 years ago

Will be interested in this too