@jsonrpc_method('os.arch')
def os_arch(request):
 pipe = Popen('/usr/bin/uname -m', stdin=PIPE, stdout=PIPE, stderr=PIPE, shell=True, close_fds=True)
 arch = pipe.communicate()[0]
 if (pipe.returncode == 0):
  return arch

@ jsonrpc_method ( 'os.arch' ) def os_arch ( request ) : pipe = Popen ( '/usr/bin/uname -m' , stdin = PIPE , stdout = PIPE , stderr = PIPE , shell = True , close_fds = True ) arch = pipe . communicate ( ) [ 0 ] if ( pipe . returncode == 0 ) : return arch
return the platform architecture returns: str - [amd64 .