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.
Downloading Other Source Code
-
I apologize for what is likely a very basic question... I'm experienced at coding, but completely new to IOS, iPhone dev and Pythonista. I want to make use of code that I can download. It is in a tar.gz file.
- How do I download it to my iPhone? Do I download directly or download it to my Mac and copy to the iPhone?
- If I download the tar.gz file directly to the iPhone, how do I unzip it?
- Once downloaded, where do I put it for use with Pythonista?
FYI, this is the nflgame modules which allow you to play with NFL statistics - historical and/or live. if anyone has played with this with Pythonista, very interested to share. I've used it on my Mac and it's excellent if you're interested in football stats.
Thanks,
Charlie -
If you have a Mac/PC at hand, the easiest is probably to copy the (unzipped) folder of the module over to Pythonista, using an app like DiskAid (the free version does everything you need for this).
You'll want to enable the "Show all Apps..." option in DiskAid's Storage settings. Then select your connected device, go to "Storage -> Pythonista", and drag the folder into the list of documents.
There are other options that don't require a Mac/PC (e.g. writing a Python script to download and unzip the file, but that's obviously a bit more complicated...)
-
Thanks. I found iFunBox and copied the files to my iPhone. That seemed to work, but I'm not sure why. I created a subdirectory called "nflgame" in the "Documents directory. When I import nflgame in a test script, it works. I assume the import statement finds the module in the nflgame subdirectory and looks at it like a package?
-
Something like DiskAid seems the way to go for moving sets of files over, but if you use Dropbox, you can navigate to a file in Dropbox on your iPad, then tap Open In... and select Pythonista. This brings the file into Pythonista and seems to place it in a special folder named Inbox.
From there, you can move the files to where you want them.
PS: Thanks cminton for the pointer to nflgame - looks sweet.
-
I installed nflgame in its own subdirectory and that worked. That is, I import nflgame from a script in the Pythonista Documents directory. It seems to know to look for packages in a subdir. I need pytz for the live routines in nflgame, so I copied pytz the same way. It's not working. Any thoughts?
randog, nflgame is amazing. I use it on my mac.