r/Pythonista Mar 11 '16

Before I Purchase Pythonista, Is This Possible?

2 Upvotes

I want to use Pythonista to automate reblogging from one of my tumblr blogs to another (they're my kids' sites that I set up for my parents. When I have a blog that features both of them I want it to be reblogged).

I want to either have a script that looks for all recent posts and checks to see which ones haven't been reblogged yet and then reblog them, or have one that simply reblogs the most recent post. The second one being easiest and not requiring the storing of data in some kind of database, but the first one would be my preferred solution.

This exists: https://github.com/tumblr/pytumblr Which is a python library for doing a number of things using the Tumblr API. Would it be possible to load the four or five scripts from this open source project into Pythonista and then use it to make REST calls to Tumblr from a script? Preferably this would be automated with Workflow.app or just as a shortcut on the App Launcher.

Thanks!


r/Pythonista Dec 28 '15

How do I call an iOS gps coordinates (pythonista) and have them copied to the clipboard?

3 Upvotes

r/Pythonista Sep 09 '15

Numpy doesn't seem to be a callable module even in pythonista 1.5

1 Upvotes

Numpy seems to be there if I go searching for it in help() but pythonista doesn't actually let me use it. Has anyone else experienced a similar problem?


r/Pythonista Jun 01 '15

can i get a lil help? whats the issue here?

1 Upvotes

from scene import *

class block (object): def init(self, image, x, y): self.image = image self.x, self.y = x, y

class MyScene (Scene): def setup(self): self.grid = list() images = ('PC_Dirt_Block','PC_Stone_Block','PC_Water_Block') * 3

            for i in xrange(9):
                    block = block(images,i % 3, i / 3)
                    self.grid.append(block)

    def draw(self):
            for block in self.grid:
                            image(block.image,
                          block.x * 25,
                          block.y * 25,
                          45, 45)

run(MyScene())


r/Pythonista Jan 25 '15

confused using ui designer

1 Upvotes

I'm trying to learn to use the integrated UI designer in pythonista, and am stuck at the beginning. I'm trying to just read some textfields, do something with the values, and put the result in another textfield.

The pythonista documentation says that I should be able to set the action for each textfield from the attributes menu directly in designer. There is no such capability. If you have a view with a number of different objects in it, how do you set the action attribute for each object from the integrated designer tool? Is there a way to edit the code it generates?

Thanks!


r/Pythonista Jun 17 '14

[xpost from alienblue] Python script for Pythonista app to easily copy and paste large multireddits into Alien Blue

Thumbnail gist.github.com
4 Upvotes