Bug: when running a script via the url scheme (pythonista3://
) it ignores the default interpreter setting and runs the script as 3.5. It also ignores the shebang - #!python2
Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Posts made by userista
-
RE: Python 3.x Progress Update
-
RE: Python 3.x Progress Update
@omz @Webmaster4o +1 for line numbers (and/or wrap glyphs) pleeeease
-
RE: Is there a way to connect to WiFi devices with Pythonista
@LERS yep I have one - it's a regular WebDav server so using something like https://github.com/amnong/easywebdav would allow you to interact with it.
-
RE: Pythonista IRC channel
Great idea! Though I actually would prefer a Slack channel instead of IRC - that way we can have a history (without needing to set up bouncers etc.). Also Slack is much more noob friendly - just signup and go - so it's more conducive for growing a community.
-
RE: webbrowser.open appex bug?
Hmmmm - that's odd. Workflow is able to open a URL from its app extension.
-
webbrowser.open appex bug?
I'm not sure if this is expected behavior but
webbrowser.open
returns false and doesn't open the URL in the app extension (via console and via script). -
RE: Appex Safari content
@JonB Pythonista could open Safari VC (using objc) but I still don't think it would be able to get the contents of the webpage (after it was loaded) without @omz adding the functionality to Pythonista (like I mentioned in a prior comment). It seems like Pythonista would have to register a JavaScript file that would be injected into the webpage.
-
RE: Appex Safari content
I need the final HTML because it's a page that has multiple iframes embedded inside each other - and I won't know the iframe URLs until runtime. It really would be a job for JavaScript - but the iframes are cross origin and WebKit doesn't allow JS to run cross origin. So I would like to let safari load all the JavaScript/iframes (and block all the ads ;) ) - then use BeautifulSoup to parse the HTML.
EDIT: According to the documentation ('Accessing a Webpage') it seems like @omz would have to add something to Pythonista to allow this to happen. Though since it seems Javascript based, I'm not sure if it would help in my scenario (because of cross origin requests).
-
RE: Appex Safari content
I specifically want to use Safari (or Safari VC) to download the page - it's a JavaScript heavy page, and I also would like to make use of content blockers.
-
Appex Safari content
Is there a way to get the full content from a safari page? Currently
_appex.get_input()
only returns the URL. -
RE: Bug list for beta release 160037
(Suggestion) on the iPhone it's hard to tell when a line wraps - perhaps a line wrap glyph and/or line numbers would be a nice improvement.
-
RE: Problem with Xcode template
@omz Can you open source the template - it would make debugging these issues much easier....(obviously unless that entails open sourcing the entire Pythonista!)
-
RE: objc_util and CommonCrypto
@jadeblaquiere said:
AES is available out of the box, see example usage below.
Thanks you so much! I had no idea the
Crypto
module was included - I didn't see any documentation for it.... (though I probably should've checkedsite-packages
) -
RE: objc_util and CommonCrypto
Does that mean I would have to write c like code to use this framework?
I found a library that wraps CommonCrypto to encrypt/decrypt using AES written in objc- I wanted to port it over to Pythonista...
https://github.com/rnapier/ios5ptl/blob/master/ch11/CryptPic/CryptPic/RNCryptManager.m
-
objc_util and CommonCrypto
I am trying to use
objc_util
to use someCommonCrypto
methods but I can't seem to figure out how to load the CommonCrypto framework.My goal is to decrypt something using native
AES
. And also to use the nativepbkdf2
implementation.Most python implementations of
AES
use compiledc
code. I haven't found a "pure python" version that works on Pythonista.Is this possible using the
objc_util
module? -
webrowser.open iOS9 crash
webbrowser.open('foo:')
crashes 1600333 on iOS 9. Thefoo
app still opens, but Pythonista crashes. -
RE: [Share Code] Touch ID Authentication in Pythonista
@omz sorry about that. I figured out what causes the crash - a
policy
with the value of2
causes it. If I changepolicy = 2 if allow_passcode else 1
topolicy = 1
it works fine.(I'm running 160032 on 8.4.1 iPhone 6)