etcd3ref/client.py
def __get_prefix_response(self, key_prefix, **kwargs):
        """Get a range of keys with a prefix."""
        if any(kwarg in kwargs for kwarg in ("key", "range_end")):
            raise TypeError("Don't use key or range_end with prefix")

        range_request = _build_get_range_request(
            key=key_prefix,
            range_end=utils.prefix_range_end(utils.to_bytes(key_prefix)),
            **kwargs
        )

        return self.kvstub.Range(
            range_request,
            self.timeout,
            credentials=self.call_credentials,
            metadata=self.metadata
        )
Get a range of keys with a prefix.
Get a range of keys with a prefix.
Get a range of keys with a prefix .
def __get_prefix_response(self, key_prefix, **kwargs):
        if any(kwarg in kwargs for kwarg in ("key", "range_end")):
            raise TypeError("Don't use key or range_end with prefix")
        range_request = _build_get_range_request(
            key=key_prefix,
            range_end=utils.prefix_range_end(utils.to_bytes(key_prefix)),
            **kwargs
        )
        return self.kvstub.Range(
            range_request,
            self.timeout,
            credentials=self.call_credentials,
            metadata=self.metadata
        )
def __get_prefix_response ( self , key_prefix , ** kwargs ) : if any ( kwarg in kwargs for kwarg in ( "key" , "range_end" ) ) : raise TypeError ( "Don't use key or range_end with prefix" ) range_request = _build_get_range_request ( key = key_prefix , range_end = utils . prefix_range_end ( utils . to_bytes ( key_prefix ) ) , ** kwargs ) return self . kvstub . Range ( range_request , self . timeout , credentials = self . call_credentials , metadata = self . metadata )
Get a range of keys with a prefix.
Get a range of keys with a prefix .
"""Get a range of keys with a prefix."""
self
key_prefix