This is a python script that work in conjunction with a workflow (you need Workflow for ios) to enable open scripts .py (Only .py for now) and save it directly on Pythonista. It's useful when someone send you a .py via email or if you have scripts saved in Downloads app or GoodReader App, and you want to save the .py directly on pythonista, just select the file, hit "Open In.." then "Run Workflow" then select "Save Python" and that's all. If the script that you're trying to save already exist, it rename the new one with a consecutive.
The workflow link is: https://workflow.is/workflows/8cdee57f79664205a6a565c9cbdb3d48
The repo link of the script is:
Please feel free to contribute to get better this code.