• idchlife

    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 read more
  • idchlife

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

    posted in Pythonista read more
  • idchlife

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

    Thanks!

    posted in Pythonista read more
  • idchlife

    Thank you! This is very helpful!

    posted in Pythonista read more
  • idchlife

    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 read more
  • idchlife

    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 read more
  • idchlife

    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 read more

Internal error.

Oops! Looks like something went wrong!