- or download this
#!/usr/bin/perl
use strict;
...
def get(self, *args):
self.client(get(args[0],args[1])
END_OF_PYTHON
- or download this
my $client = Client->new('127.0.0.1',1982);
$client->get('space','key');
$client->search('space', { a => b, c => d });
- or download this
my $client = new Client('127.0.0.1',1982);
use Inline Python => <<'END_OF_PYTHON'
import hyperdex.client as Client
END_OF_PYTHON
- or download this
my $client = Client->Client('127.0.0.1',1982);
- or download this
#!/usr/bin/perl
use strict;
...
py_bind_class("main::PerlClient","__main__","MyClient");
my $a = new PerlClient('127.0.0.1',1982);
warn Dumper($a->get('space','1234567'));