jplana / python-etcd

A python client for etcd
Other
522 stars 210 forks source link

Plans for future updates #232

Open lavagetto opened 7 years ago

lavagetto commented 7 years ago

Hi all!

I thought I might spend 10 minutes to write down some ideas on how to evolve the library now.

Deprecation of old methods

We have quite a few methods that are a leftover of the first version of the client, and that are now nothing more than aliases for the base methods.

I would like to reduce the API surface and deprecate those methods for now, and remove them in a later version

V3 support

While I know there is a v3 python client that works decently, it has a couple of issues:

What do people think? Other things that would be useful?

SamuelMarks commented 7 years ago

It may be as simple as creating a v2 shim—always printing a deprecation message when it's is used—which could be rather trivial, something like:

def _all_get(key, **kwargs):
    return namedtuple('Val', 'value')(self.get(key)) if self.protocol == 3 else self.get(key)
r0h4n commented 7 years ago

Do we have etcd API v3 support? Kinda confused looking at the comments

virtualsafety commented 7 years ago

Do we have etcd API v3 support?