Updating Allegory Within Pythonista
I use an iPad as my primary computer. To run Parable I use Apologue and the standard Allegory interface under Pythonista.
With recent changes to Parable it has become possible to run Allegory without changes. (Previously a few things had to be removed manually before it would run). To make updating it easier I have written a quick script that will download the latest version.
# coding: utf-8 import requests import datetime url = 'https://raw.githubusercontent.com/crcx/parable/master/py/allegory' r = requests.get(url) with open('allegory.py', 'w') as f: f.write('# allegory updated ') f.write(str(datetime.date.today())) f.write('\n') f.write(r.content)