featurelist.orgfeaturelist.org
 
U
D
3 points - posted 3502 days ago by Mattie - status: Active - 3 comments watch embed this
Create the backend API necessary and a Python module that allows people to import specific versions of UtilityMill-stored Python source code in their own applications.

Ideally this would import the Python module into memory from the URL and behave a lot like if the module were already in your site-packages.

For example, imagine a local file myfile.py:

from utilitymill import rimport
# import a utility script at the given revision
nysiis = rimport('nysiis', 2)

print nysiis.nysiis("John Smith")


Here's one basic example of how to do something like this (but might not be ideal for you):
http://aspn.activestate.com/AS...ipe/305277

Mattie posted on 2008-02-23 21:03:43
You might create a special version of this module to be used in Utility Mill scripts. I imagine it might be somewhat faster to import them from the database rather than doing an external web download/load of the module.

greg posted on 2008-02-24 00:42:53
That's a really good idea! The API may already be up to snuff for that. I'll fool with it a bit, see what I come up with.

Zero posted on 2008-12-29 09:04:52
Here is a working version of what you wanted ...
http://code.activestate.com/re...pes/576599