You can clone with
Cannot retrieve contributors at this time
ABOUTThis directory contains a pure Python implementation of a voldemort client.It supports both raw (string) and JSON serialized stores. Only the protocolbuffer interface over TCP is supported for talking to the server. Onlyserver-side routing is supported.INSTALLINGTo install the module, you will need the following dependencies:- nose >= 0.11- simplejson >= 2.1.1- Google protobuf > 2.3.0The setup process will automatically install nose and simplejson, since theyare well behaved Python packages. The protobuf module will need to be downloadedfrom https://code.google.com/p/protobuf/downloads/list and installed manually.Once the dependencies, run the test suite to sanity check things. You need tofirst start up a Voldemort server locally, pointing to the config files intests/voldemort_config. From the root voldemort of the voldemort source tree, run:> bin/voldemort-server clients/python/tests/voldemort_configIn a separate shell, change into the clients/python directory and run:> python setup.py nosetestsIf all tests pass, you can install the package with the command:> python setup.py installThis may need to be run as root if you don't have permissions to install to yourlocal python library.USING THE MODULETo use the client, simple import it into your program with the statement:import voldemortTo create a client connection, instantiate a StoreClient object:client = voldemort.StoreClient('store_name', [('node1', 6666), ('node2', 6666)])The values of the store name and cluster nodes/ports will depend on your particularVoldemort setup. The key and value serialization type will be determinedautomatically during client initialization using the values in your cluster'sstores.xml file.The StoreClient object implements the get(), get_all(), put(), maybe_put(),and delete() methods. For example:> v1 = client.put("foo", "hello")> resp = client.get("foo")> resp"hello"> client.delete("foo")> client.get("foo")The test suite contains many other usage examples.