• userista

    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

    posted in Pythonista read more
  • userista

    @omz @Webmaster4o +1 for line numbers (and/or wrap glyphs) pleeeease

    posted in Pythonista read more
  • userista

    @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.

    posted in Pythonista read more
  • userista

    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.

    posted in Pythonista read more
  • userista

    Sweet! I'll try that - thanks!

    posted in Pythonista read more
  • userista

    Hmmmm - that's odd. Workflow is able to open a URL from its app extension.

    posted in Pythonista read more
  • userista

    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).

    posted in Pythonista read more
  • userista

    @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.

    posted in Pythonista read more
  • userista

    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).

    posted in Pythonista read more
  • userista

    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.

    posted in Pythonista read more
  • userista

    Is there a way to get the full content from a safari page? Currently _appex.get_input() only returns the URL.

    posted in Pythonista read more
  • userista

    (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.

    posted in Pythonista read more
  • userista

    @omz Can you open source the template - it would make debugging these issues much easier....(obviously unless that entails open sourcing the entire Pythonista!)

    posted in Pythonista read more
  • userista

    @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 checked site-packages)

    posted in Pythonista read more
  • userista

    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

    posted in Pythonista read more
  • userista

    I am trying to use objc_util to use some CommonCrypto 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 native pbkdf2 implementation.

    Most python implementations of AES use compiled c code. I haven't found a "pure python" version that works on Pythonista.

    Is this possible using the objc_util module?

    posted in Pythonista read more
  • userista

    webbrowser.open('foo:') crashes 1600333 on iOS 9. The foo app still opens, but Pythonista crashes.

    posted in Pythonista read more
  • userista

    @omz sorry about that. I figured out what causes the crash - a policy with the value of 2 causes it. If I change policy = 2 if allow_passcode else 1 to policy = 1 it works fine.

    (I'm running 160032 on 8.4.1 iPhone 6)

    posted in Pythonista read more
Internal error.

Oops! Looks like something went wrong!