1 Blog Entry for October 2006
Pygmalion - Python Interface to Ma.gnolia
This is very cool...
>>> import pygmalion >>> dir(pygmalion) ['Exceptions', 'Handlers', 'Pygmalion', 'Types', '__builtins__', '__doc__', '__file__', '__name__', '__path__'] >>> pyg = pygmalion.Pygmalion('your API key here') >>> dir(pyg) ['__class__', '__delattr__', '__dict__', '__doc__', '__getattribute__', '__hash__', '__init__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__str__', '__weakref__', 'apikey', 'bookmarks_add', 'bookmarks_delete', 'bookmarks_find', 'bookmarks_get', 'bookmarks_tags_add', 'bookmarks_tags_delete', 'bookmarks_tags_replace', 'bookmarks_update', 'headers', 'tags_find'] >>> bookmarks = pyg.bookmarks_find(person='robhudson') >>> b = bookmarks[0] >>> b <Bookmark: Pygmalion (http://code.google.com/p/pygmalion/)> >>> dir(b) ['Tags', '__class__', '__delattr__', '__dict__', '__doc__', '__getattribute__', '__hash__', '__init__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__str__', '__weakref__', 'created', 'description', 'id', 'owner', 'private', 'rating', 'screenshot_url', 'tags', 'title', 'updated', 'url'] >>> b.title ...