import requests #библиотека для чтения запросов
response = requests.get('https://1234.com/public', params=params) #запрос к api
workrequest = response.json() #забираем json из запроса. Обычно там список что то подобное
sql_json = [] #создаем свой список (list) пустой
#циклом забираем данные в своей список.
for i in range(len(workrequest)):
sql_json.append(workrequest[i]['globalTradeID'])
sql_json.append(workrequest[i]['tradeID'])
upgradata_str = workrequest[i]['date']
sql_json.append(updateloghourse(upgradata_str))
sql_json.append(workrequest[i]['type'])
sql_json.append(workrequest[i]['rate'])
sql_json.append(workrequest[i]['amount'])
sql_json.append(workrequest[i]['total'])
sqlADDinfoTable(sql_json,name_table) # В моем случае я отправляю данные сразу в таблицу SQL
sql_json.clear() #Очищаю список для новой итерации цикла.
workflow Test-Workflow
{
$Disk1 = Get-ChildItem C:\Temp\1
# The disks are processed in parallel.
ForEach -Parallel ($Disk in $Disk1)
{
$DiskFrom = "C:\Temp\1\$Disk"
# The commands run sequentially on each disk.
Copy-Item -Path $DiskFrom -Destination C:\Temp\2\
}
Write-Output "Files copied."
}
Test-Workflow
Registry Editor Version 5.00 [-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\CloudStore\Store\Cache\DefaultAccount\$$windows.data.bluelightreduction.bluelightreductionstate\Current] [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\CloudStore\Store\Cache\DefaultAccount\$$windows.data.bluelightreduction.bluelightreductionstate] [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\CloudStore\Store\Cache\DefaultAccount\$$windows.data.bluelightreduction.bluelightreductionstate\Current] [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\CloudStore\Store\Cache\DefaultAccount\$$windows.data.bluelightreduction.settings] [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\CloudStore\Store\Cache\DefaultAccount\$$windows.data.bluelightreduction.settings\Current] «Data»=hex:02,00,00,00,5e,b6,ca,5c,aa,bc,d2,01,00,00,00,00,43,42,01,00,ca,14,\ 0e,15,00,ca,1e,0e,07,00,ca,32,00,ca,3c,00,00
app = Flask(__name__)
@app.route('/')
def hello_world():
return render_template('index.html')
flow1 = Thread(target=app.run)
flow2 = Thread(target=momowwind, daemon=True)
flow1.start()
flow2.start()
ip link set eth0 mtu 1450
ip route add 192.168.1.0/24 dev eth0 advmss 1410
sudo apt update
sudo apt install python3-pip
pip3 install --user --upgrade buildozer
sudo apt update
sudo apt install -y git zip unzip openjdk-8-jdk python3-pip autoconf libtool pkg-config zlib1g-dev libncurses5-dev libncursesw5-dev libtinfo5 cmake libffi-dev libssl-dev
pip3 install --user --upgrade Cython==0.29.19 virtualenv
export PATH=$PATH:~/.local/bin/
buildozer init
buildozer android debug
(можно buildozer android debug deploy дело ваше) wget https://github.com/HeaTTheatR/KivyMD-data/raw/master/install-kivy-buildozer-dependencies.sh
chmod +x install-kivy-buildozer-dependencies.sh
./install-kivy-buildozer-dependencies.sh
sudo pip3 install kivymd
python3 main.py
buildozer init
buildozer android debug