LevelDB RPC is an XML-RPC based interface for LevelDB.
- install leveldb (http://code.google.com/p/leveldb/)
- install py-leveldb (http://code.google.com/p/py-leveldb/)
Currently, only following methods are supported:
put
get
delete
$ python leveldb-server.py
You can also specify port number or data directory:
$ python leveldb-server.py --port=8080 --datadir=testdir
$ python leveldb-client.py
localhost:8000> get foo
localhost:8000> put foo bar
localhost:8000> get foo
bar
localhost:8000> delete foo
localhost:8000> <CTRL-D>
$
You can also specify hostname or port number:
$ python leveldb-client.py --host=hostname --port=8080