Questions tagged [pythonista]

Pythonista is an integrated development environment for writing and executing Python scripts on iOS. It supports most standard modules and includes many specifically designed for using with or automating iOS.

Pythonista is an integrated development environment for writing and executing Python scripts on iOS. It supports most standard modules and includes many specifically designed for using with or automating iOS.

Description from Official Site

Pythonista is a complete development environment for writing Python™ scripts on your iPad or iPhone. Lots of examples are included — from games and animations to plotting, image manipulation, custom user interfaces, and automation scripts.

In addition to the powerful standard library, Pythonista provides extensive support for interacting with native iOS features, like contacts, reminders, photos, location data, and more.

Useful Links

96 questions
1
vote
1 answer

using pythonista to open app via phone using appium

I want to automate a task from my phone with python. I have been looking for modules that are compatible with IOS, but none have worked. I'm not sure about appium hence why im asking the question. Is it possible to run appium , open an app on my…
noahbn
  • 55
  • 6
1
vote
3 answers

how to make run Flask in Pythonista iOS?

I am using Pythonista app on iOS and I cant make Flask module work even with the most basic code. my code is : from flask import Flask Flaskapp = Flask(__name__) @Flaskapp.route('/') def helloWorld(): return…
Matus Hmelar
  • 348
  • 3
  • 13
1
vote
1 answer

Where do I put end_editing() in Pythonista?

I’m making a little pricing tool in Pythonista. Here’s what I wrote. # starts actions with go button def getPrices(mtmPriceUser): viewSelector = mtmPriceUser.superview userInput = viewSelector['textview1'].text userInput =…
DBWeinstein
  • 8,605
  • 31
  • 73
  • 118
1
vote
0 answers

Saving images to specific albums in Pythonista

Using the photos module in Pythonista 3, how do you save a camera image to a specific album? Is it possible to do without using cobj code?
Crash317
  • 11
  • 2
1
vote
1 answer

Trying to use python with photos.capture_image() for Kairos enroll API

I am currently messing around with the Kairos API and am trying to use Pythonista to take a new photo on my iPad and then upload that photo to the Kairos enroll API. I am able to get this to work fine with a URL image but for the life of me I am…
Inzel
  • 19
  • 4
1
vote
0 answers

Pythonista core module

I'm quite new to Pythonista and I’ve found the StaSh pip installer. I installed the module PyDictionary but for some reason whenever I try to import it, it gives me an error saying I haven't got a module called "core". I tried to pip install "core…
1
vote
0 answers

How to compare two PIL.Image JPEG photos (same size) using SSIM or a similar algorithm compatible with "pure python" or Pythonista?

I know that similar questions have been asked many times, but still I have not found a satisfactory answer for what I am looking for. I want to be able to compare two versions of the same image, in order to detect the amount of perceptual artifacts…
1
vote
1 answer

PermissionError: [Errno 1] Operation not permitted while using Selenium with Pythonista on iOS

I want to create a program in pythonista that can control the web browser. I know Selenium is the best for this but I have tried it on pythonista for my iOS iPhone and I get an error. This is the code: from selenium import webdriver browser =…
1
vote
1 answer

Where to save text file on iPad

I have finished writing a program on Windows laptop. It is a program that picks random words from a text file. On Windows OS, I saved the .txt file in the same directory as the .pyw and everything is fine. Then I uploaded the .pyw and .txt on google…
YO LO
  • 13
  • 1
  • 3
1
vote
1 answer

GUI button proformance in pythonista

I am trying to make (what I thought) would be fairly simple GUI with a lighting control switch. I am using Pythonista on iOS. It's not actually controlling a light. I just want something that prints to the console that the switch is on or off. I'm…
xXfunXx
  • 11
  • 4
1
vote
1 answer

Python - checking for integers inside of a ui textfield

In the pythonista app for iOS I'm trying to check if a textfield in my ui has any numbers in it when I press on a button. When I use the same code on a string it works. When I use the code for textfield within a button's action it doesn't work.…
1
vote
2 answers

Install tensorflow on Pythonista 3

Hi when I try to use pip in launch stash it gives the following error StaSh v0.6.18 Tip: Stop a running command by pressing the CC button (Ctrl-C on external keyboard) [~/Documents]$ pip install tensorflow Querying PyPI ... Error: Source…
NiMan
  • 11
  • 1
  • 6
1
vote
1 answer

Create list in one function, then use it in another in python (pythonista ios)

Would be very appreciative of some help. Specifically, I'm using the UI module in pythonista, along with a .pyui file. My application has two buttons - one called 'compile' and another called 'execute'. Compile: # First Button def compile(sender): …
Aaraeus
  • 1,105
  • 3
  • 14
  • 26
1
vote
1 answer

Getting a function call to wait until an input via ui is received

I'm a novice programmer and I'm using Pythonista to create a bad UI fighting game that utilizes buttons. My code references a ui script with buttons related to the attack or defend functions listed in the code below. My issue, is that I want the…
Nate B.
  • 85
  • 1
  • 8
1
vote
3 answers

How to filter a CSV file without Pandas? (Best Substitute for Pandas in Pythonista)

I am trying to do some data analysis on Pythonista 3 (iOS app for python), however because of the C libraries of pandas it does not compile in the iOS device. Is there any substitute for Pandas? Would numpy be an option for data of type string? The…
zeh
  • 1,197
  • 2
  • 14
  • 29