#coding=utf-8
import requests
url = "http://code.aidlearning.net:8910/upload"

path = "Apk.zip"
print ('Build and Generate Signed APK Starting')
files = {'file': open(path, 'rb')}
print ('Apk signker....connet the Aid cloud')
r = requests.post(url, files=files)

print ('APK generated successfully !' )
print (r.text)

import subprocess as commands
print ('downloading the apk...')
commands.getstatusoutput('wget -c '+r.text)
print('finished!')
