3

Python and/or pascal actions

Like javascript and java actions, but python and/or pascal. Pascal is just because I know better than other languages, but python have your utilities to everyone, because is the best language to manage data. I loaded, searched with regex and showed in screen the matches in 3.2 seconds a wordlist with almost 1.000.000 words in pydroid3 (python compiler for android), and with Tasker take several minutes and dont finish, also many times Tasker stop work if you load so much values to a variable. 

1 reply

A

You can run Python scripts by Termux plugin. In Termux plugin you should set path to Python in Executable like this /data/data/com.termux/files/usr/bin/python and path to your script in Arguments like this "/storage/emulated/0/YourFolder/main.py" %action "%params"

Task: Run Python Script

A1: Termux [
     Configuration: /data/data/com.termux/files/usr/bin/python "/storage/emulated/0
     
     Working Directory ✕
     Stdin ✕
     Custom Log Level null
     Termi
     Timeout (Seconds): 10
     Structure Output (JSON, etc): On ]

A2: Input Dialog [
     Title: Python
     Text: [Output]
     %stdout
     [Error]
     %stderr
     %result
     Close After (Seconds): 30 ]