omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. idchlife

    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.


    • Profile
    • Following 0
    • Followers 0
    • Topics 5
    • Posts 8
    • Best 0
    • Controversial 0
    • Groups 0

    idchlife

    @idchlife

    0
    Reputation
    716
    Profile views
    8
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    idchlife Unfollow Follow

    Latest posts made by idchlife

    • Can't add external folder from Working Copy via Files app. Folders are not selectable. All folders inside Files app popup

      Can't select folder in Files app in iPadOS. Google says nothing about it, nobody had problem with selecting folders in Files app, so I suspect the problem within Pythonista code for button External Files -> Open.

      Maybe someone knows workaround? I'm tryong to add Working Copy folder to Pythonista.

      posted in Pythonista
      idchlife
      idchlife
    • What is the proper way to make async http requests in Pythonista, without blocking UI and without ui.in_background (asyncio doesn’t allow it)?

      I’m making an app that will be used on 3 of my iPads via working copy and Pythonista. It will upload photos made in iPad to my server. Unfortunately, as I understand, requests is sync library, so ui thread will be locked.
      I though about aiohttp, but as I can see there is no clear way how to install it into pythonista app repo and then install it on the other devices (like I would with pipenv on my server)

      I wondered about ui.in_background, but my app already uses asyncio to the fullest (many ui updates, statuses via simple http requests to my server), so ui.in_background simply does not execute because asyncio.loop.run_until_completes does not give it opportunity to even start executing

      Thanks!

      posted in Pythonista
      idchlife
      idchlife
    • RE: How to lock landscape orientation? Code view.present(orientations=("landscape",)) does not work anymore

      Thanks! Wow, that's a bummer. Makes sense, though

      posted in Pythonista
      idchlife
      idchlife
    • How to lock landscape orientation? Code view.present(orientations=("landscape",)) does not work anymore

      I still can rotate my iPad and have portrait orientation. How to disable it?

      Thanks!

      posted in Pythonista
      idchlife
      idchlife
    • RE: How to use create_image_asset for downloaded image instead of save_image since it does not accept PIL image?

      Thank you! This is very helpful!

      posted in Pythonista
      idchlife
      idchlife
    • RE: How to use create_image_asset for downloaded image instead of save_image since it does not accept PIL image?

      Tried it and it works! Thanks!

      Any info or idea why .save_image with functionality making image from data was depreacted?
      It seems unreasonable to save temporary file to app folder just to have it inside photos duplicated (of course temporary file could be deleted after)

      posted in Pythonista
      idchlife
      idchlife
    • Can't yet grasp the process how Pythonista works with exporting app into Xcode and making iOS app?

      I'm using Pythonista now to make iOS app with several requests, asyncio, sqlalchemy and image parts working together.

      Simple interface, several images fpr design of app, etc

      I did not yet try to export it to Xcode and I wanted to ask if someone knows how this whole thing works?

      I have default folder for application. I can open("filename") there and create a file.

      I create .sql file for sqlite via sqlalchemy
      I save files into this app folder when I download them from the internet.

      Will all of those things work after making it into iOS app?
      Does iOS allow for such things as saving your app files there, in the app folder?

      Or should I be aware of some major constraints for making iOS apps in Pythonista?

      It's very convinient for me to write in Pythonista iOS app since my backend is in Python also.

      Thanks!

      posted in Pythonista
      idchlife
      idchlife
    • How to use create_image_asset for downloaded image instead of save_image since it does not accept PIL image?

      I see that photos.save_image became deprecated, so I tried using create_image_asset, but it does not work with image urls or PIL image that was created by downloading url: Image.open(BytesIO(urlopen(photo_url).read()))

      How .save_image could be deprecated, if not tool available to replace it?

      Thanks!

      posted in Pythonista
      idchlife
      idchlife