Elliptics version update: 2.19.2.7
[elliptics.git] / bindings / python / range.py
blob9321fa45616ed70278cbec0500193215ab4b48b5
1 #!/usr/bin/python
2 # -*- coding: utf-8 -*-
4 from libelliptics_python import *
6 log = elliptics_log_file("/dev/stderr", 8)
7 n = elliptics_node_python(log)
9 group = 2
11 n.add_groups([group])
12 n.add_remote("localhost", 1025)
14 r = elliptics_range()
15 r.start = [0, 0, 0, 0]
16 r.end = [0xff, 0xdd]
17 r.group_id = group
18 r.limit_start = 1
19 r.limit_num = 2
21 ret = n.read_data_range(r)
22 print "len: ", len(ret)
23 print ret