def balance(cls): ws = Client(settings.SMS_EMAY_URL).service rs = ws.getBalance(settings.SMS_EMAY_SN, settings.SMS_EMAY_KEY) print(rs)