async def divide_exactly(request): params = gfp(request, xmb.divide_exactly) reply = CommonReply() result = xmb.divide_exactly(**params) reply.result = result[0] reply.remainder = result[1] return reply.json()
async def radix_convert(request): params = gfp(request, xmb.radix_convert) reply = CommonReply() reply.result = xmb.radix_convert(**params) return reply.json()
async def square(request): params = gfp(request, xmb.square) reply = CommonReply() reply.result = xmb.square(**params) return reply.json()
async def factorial(request): params = gfp(request, xmb.factorial) reply = CommonReply() reply.result = xmb.factorial(**params) return reply.json()
async def divide(request): params = gfp(request, xmb.divide) reply = CommonReply() reply.result = xmb.divide(**params) return reply.json()
async def multiply(request): params = gfp(request, xmb.multiply) reply = CommonReply() reply.result = xmb.multiply(**params) return reply.json()
async def plus(request): params = gfp(request, xmb.plus) reply = CommonReply() reply.result = xmb.plus(**params) return reply.json()