Hi All,
I've noticed a serious lack of attention to some of the work that I've been trying to do for Pythonista (i.e. Modal boxes), and I have recently had a renewed faith in getting it completed, amongst other ideas.
One of the ideas that I had was a helper app, one that would have links to many of the amazing scripts/modules posted here and/or hosted on github, to allow them to be installed (either in the current project or site-packages, as required).
The concept is simple enough, with dulwich and github3 I have almost everything covered, allowing the use of gists and full packages.
However - I have been putting additional effort into the WebIDE app, as I do enjoy working with PyCharm, its a little faster than using git, but in the same respect if I could create a deeper integration with PyCharm I would be able to work a lot more effectively, and further to that it would help me along with another project I have going which is to setup a compatible ui library for OSX (Windows as well, but after OSX is underway).
This would allow me/anyone to develop Pythonista apps on a laptop as well as iDevices.
However, my ability to get this done is contingent on being able to inspect / review things from a working Pythonista installation.
Note: I would use the app template to develop an app to help me, but this only supports Python 2.7, and until omz gets the time to support py3, there are limitations for me.
-
Has anyone successfully setup a python REPL within Pythonista?
Ideally, I want to create a Paramiko based SSH Service, with a limited subset of commands, one of them being 'python' to open a virtual REPL. -
If not, can anyone think of a way to hook into the Python interpreter included with Pythonista? Perhaps using objc_util or something, using stdin/stdout redirection via StringIO?
-
For WebIDE, I setup the ability to 'run' (test) a script that I am working on using runpy, and it works, but I've not used it extensively to see if there are any major limitations or not, if anyone has any better methods of using it, especially one that would allow me to send command line arguments to the script without having to submit modified global() (i.e. forcibly setting sys.argv - which I've not tried yet) I'd love to hear it.
Sorry about the oversharing of information, but sometimes a little conext helps to direct the responses a bit.
Please let me know if anyone can provide any sort of information, code, references, links, ANYTHING really to help me along with getting a remote REPL working with Pythonista.
Regards,
Michael
P.S. Doing this would also help me with another phase of the project, dulwich + webserver + custom git hook (manually installed; not via GH/BB) to ping a waiting Pythonista app to update from the remote, coupled with Working Copy/Clone this would be a very clean way to dev via laptop.