Category Archives: iOS

Synchronator for Pythonista

Pythonista is the best Python environment currently available for iOS (at least as far as I am concerned). There are other Python synchronization apps for Pythonista, but they all use the original Dropbox API V1, which is deprecated and soon to be discontinued.  The Synchronator module was created using the new V2 API in order to synchronize Python scripts between Pythonista on iOS devices and to backup to Dropbox.

Synchronator is dependent on another module, called DropboxSetup, which saves and loads Dropbox access tokens for use by other Python modules.

The code is available from GitHub at the link https://github.com/markhamilton1/Synchronator/tree/master.

For Synchronator to work properly it needs the latest version of the dropbox Python package, which I use Stash to install. The latest version of the dropbox package has support for both the original V1 API as well as the newer V2 API, which Synchronator needs to operate.

Once these pieces are all in place on your iOS device, you will need to configure Synchronator in order to work. The following steps can be used to do this.

1 – Go to the Dropbox developer web page.

2 – Create an app that uses the Dropbox API V2. (Not the Dropbox for Business API)

3 – Select the App Folder option.

4 – Enter a name for the app. I recommend Synchronator-yourname.

If the previous steps were successful then you have created an app and should now be on the app page where you can edit the properties of the app.

5 – Find the property “Generated Access Token” and select the Generate button.

6 – Select and copy the Access Token to the clipboard.

7 – Execute Synchronator in Pythonista on your iOS device.

8 – Enter the Access Token at the prompt. Paste it if you performed steps 1 thru 6 on the same iOS device that Pythonista is on.

If everything was successful then Synchronator will begin synchronizing with Dropbox.

Comments Off on Synchronator for Pythonista

Filed under iOS, Python

Dan’s iOS Coder Blog

OK, it has been a while but I haven’t gone away…completely.

A good friend of mine has started a blog on programing for iOS. I just wanted to reference it here so that others could be aware of it as well.

Dan’s iOS Coder

Enjoy!

Comments Off on Dan’s iOS Coder Blog

Filed under iOS