Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    ...
      def get(self, *args):
        self.client(get(args[0],args[1])
    END_OF_PYTHON
    
  2. or download this
    my $client = Client->new('127.0.0.1',1982);
    $client->get('space','key');
    $client->search('space', { a => b, c => d });
    
  3. 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
    
  4. or download this
    my $client = Client->Client('127.0.0.1',1982);
    
  5. 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'));