#!/usr/bin/perl use strict; use warnings; my $client = Wrapper->new(); my @res = $client->get('space','key'); use Inline Python => <<'END_OF_PYTHON' import hyperdex.client class Wrapper: def __init__(self, host='127.0.0.1', port=1982): self.client = hyperdex.client.Client(host,port) def get(self, *args): self.client(get(args[0],args[1]) END_OF_PYTHON