-
|
Hello, I am seriously into hiking nowadays and want to create an app for it. I would start by having a list of stops along the way and, when checking in, useful information about the actual, next and previous stops would be shown. Distances, average speed, timings, medical help, food/drinks availability etc. It could even be just 1 py file with the standard stuff, in the beginning. I programmed in Python before so that should be no problem. I own a new iPhone 17 and an iPad Pro second generation, 5.5 years old. Both have updated iOS versions all the time. ### Questions:
The main reason I came here is that my hiking app in the Shortcuts is such a royal PITA… Even converting a textnumber to a number is an issue and I got very annoyed (even though it worked fine), so verbose. Thanks a lot !! |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 4 replies
-
|
@wimgielis Your setup sounds fairly similar to my own in terms of devices and this is why I like Pythonista, making random things that are useful for me. At least when I’m not developing libraries to extend Pythonista’s development capabilities to support some of the more complicated things I have thought make in my case… To answer your questions:
|
Beta Was this translation helpful? Give feedback.
-
|
Pythonista is great indeed!
For debugging, I recommend my peek package (see www.salabim.org/peek),
which is fully compatible with Pythonista (including coloured output).
Vrolijk Pasen (Happy Easter)
…On Sun, 5 Apr 2026 at 10:01, Wim Gielis ***@***.***> wrote:
Thank you for the information, much appreciated. I can take a start!
Happy Easter days to all.
—
Reply to this email directly, view it on GitHub
<#123 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHHWWC3TAVH7TPDWLBC7O734UIHELAVCNFSM6AAAAACXNAHBDWVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTMNBVGMZDSMY>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
That will be my use case. Develop the scripts on the PC and test as good as
possible. Then copy/paste the py file to the iPhone and run the app from
Shortcuts. Every stop along the hike triggers an update in a json file and
statistics are calculated, information is shown, etc.
The shortcuts app alone drives me crazy for anything advanced.
Looking forward to playing around with the tools !
Including peek
Op zo 5 apr 2026 om 10:47 schreef M4nw3l ***@***.***>
… No problem, good luck! If I recall correctly also, Pythonista’s
integrations with iOS allows scripts to be run from Shortcuts as well,
although I haven’t really used this.
—
Reply to this email directly, view it on GitHub
<#123 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEDHULIF6M4Q7UZVFS7QLOL4UIMQPAVCNFSM6AAAAACXNAHBDWVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTMNBVGM2DONA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
Thanks. Good observation.
For now I will have enough with json, datetime, enum, typing and maybe re
Sending an email to myself and others along the way would be a good
addition too.
Op zo 5 apr 2026 om 11:05 schreef M4nw3l ***@***.***>
… Ah I see, if you’re developing on PC you will need to be a careful that
your code is compatible. In particular if you use any python packages from
pip, they will only work properly with StaSh
<https://github.com/ywangd/stash>/Pythonista if they are “pure python”
packages. Or if the package is built into Pythonista already. There’s a
list of builtin packages here
<https://omz-software.com/pythonista/docs/ios/index.html> but you will
also need to bear in mind the versions of these packages if you use any.
StaSh can install a good many packages generally still, although sadly it
seems to have been lacking in updates itself too lately.
—
Reply to this email directly, view it on GitHub
<#123 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEDHULI352DJYIQDU5C6BJL4UIOUTAVCNFSM6AAAAACXNAHBDWVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTMNBVGM2TMMQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
Thanks, I had done something like that in other Python programs.
But good to see that it works here too.
Op zo 5 apr 2026 om 18:46 schreef salabim ***@***.***>:
… Here's how you can send e-mails:
import smtplib
gmail_user = ***@***.***"
gmail_password = "your password"
send_to = ***@***.***"] # multiple e-mails are allowed
subject = "subject"
body = "body0\nbody1\nbody2"
try:
server = smtplib.SMTP_SSL("smtp.gmail.com", 465)
server.ehlo()
server.login(gmail_user, gmail_password)
server.sendmail(gmail_user, send_to, body)
server.close()
print("Email sent!")
except:
print("Something went wrong...")
—
Reply to this email directly, view it on GitHub
<#123 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEDHULLIPF4OFUMEDWLI6X34UKEXDAVCNFSM6AAAAACXNAHBDWVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTMNBVGYZDCOA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
@wimgielis Your setup sounds fairly similar to my own in terms of devices and this is why I like Pythonista, making random things that are useful for me. At least when I’m not developing libraries to extend Pythonista’s development capabilities to support some of the more complicated things I have thought make in my case…
To answer your questions: