Pythonista or Editorial?
-
I want to write and run Python scripts on my iPhone.
It is not clear to me whether I should go for Pythonista or Editorial.What are the differences and similarities of the two regarding Python editing/running ?
Do they use the same Python runtime and provide the same Python capabilities, standard modules and omz-modules ?
By the way, I saw the list of provided standard modules, Numpy-matplotlib modules and omz-specific modules,
but is there a list of the standard python.org modules NOT included ?Thanks.
-
Editorial if your goal is to do text processing /Markdown editing. Pythonista for general purpose programming. The underlying python engine is basically the same, as i understand it, but Pythonista includes more libraries(for instance, I am not sure matplotlib is included in Editorial, nor the scene module).
Most of the standardlib is supprted. Notable exceptions:
-tkinter (instead, an ios specific ui lib is provided)
-multiprocessing (though threading is supported)
-subprocess, pstats, signal
-some of the things that rely on the underlying shell, such as readline, termios
- atexit
- siteHere is the module list in the current Pythonista beta, though as noted a few such as subprocess/signal are provided but mostly don't work. If you have something specific, ask and we can check if it is works.
BaseHTTPServer Bastion ConfigParser Cookie HTMLParser
MimeWriter Queue SimpleHTTPServer SimpleXMLRPCServer
SocketServer StringIO UserDict UserList UserString _LWPCookieJar
_MozillaCookieJar future _abcoll _pyio _strptime _sysconfigdata _weakrefset abc antigravity anydbm argparse ast asynchat asyncore atexit base64 bdb binhex bisect bsddb cProfile calendar cgi chunk cmd code codecs codeop collections colorsys commands compileall compiler contextlib cookielib copy copy_reg csv ctypes dateutil decimal difflib dis distutils doctest dumbdbm dummy_thread dummy_threading email encodings filecmp fileinput fnmatch formatter fractions ftplib functools genericpath getopt getpass gettext glob gzip hashlib heapq hmac htmlentitydefs htmllib httplib imaplib imghdr importlib imputil inspect io json keyword linecache locale logging markupbase md5 mimetools mimetypes mimify modulefinder motion netrc new numbers opcode optparse os pdb pickle pipes pkgutil platform plistlib poplib posixpath pprint profile pstats py_compile pydoc pydoc_data quopri random re repr rfc822 rlcompleter robotparser runpy sched sets sgmllib sha shelve shlex shutil site smtplib sndhdr socket sqlite3 sre sre_compile sre_constants sre_parse ssl stat string stringprep struct subprocess symbol sysconfig tabnanny tarfile telnetlib tempfile textwrap this threading timeit token tokenize trace traceback twitter types unittest urllib urllib2 urlparse uu uuid warnings wave weakref whichdb wsgiref xml xmllib xmlrpclib yaml zipfile _scene1 _scene_types canvas matplotlib mpl_toolkits mpmath numpy pylab scene scene_drawing sympy Crypto PIL PyPDF2 _pythonista_preflight appex bottle bs4 cb clipboard cssselect dialogs dropbox ecdsa evernote faker feedparser flask html2text html5lib httplib2 images2gif importcompletion itsdangerous jedi jinja2 markdown markdown2 markupsafe mechanize midiutil notification oauth2 objc_util paramiko parsedatetime photos pycparser pyflakes pygments pyparsing pytz qrcode reportlab requests screenplain simpy sk sqlalchemy thrift ui webbrowser werkzeug xhtml2pdf xmltodict Image ImageChops ImageDraw ImageEnhance ImageFilter ImageFont ImageOps
-
This sounds great.
What about script invocation? As far as I understand, there are three ways to invoke a script:
- from Pythonista editor
- from Pythonista prompt
- from another App via the Pythonista URL scheme (with URL-encoded args)
Is this correct ?
-
Also you can create custom "shortcuts" from the action menu. Other methods: use execfile from another script, or you can use stash.
In the upcoming 1.6, there is also a share sheet extension which lets you launch pythonista scripts from other apps which have share buttons.
-
If you want to do python development, use Pythonista. Python is not the main focus of Editorial. Pythonista is far ahead of editorial in terms of python editor functionality, especially in the upcoming 1.6 release