Introduction
Everything entwinelib fetches from twine.com is an Item, which is serialized in RDF/XML.
The basic class is TwineItem and there is also TwineProfile, a sub-class of TwineItem which handles printing and finding Connections in your profile.
Warning: This will change daily until I've gotten a firmer grasp on Radar's RDF.
Usage
Print Item you have the Id for:
from entwine.entwinelib import TwineItem
item = TwineItem()
item.show("1tx52n3d-gv")Print profile for a given username in RDF:
from entwine.entwinelib import TwineProfile, parse_profile
profile = TwineProfile()
print profile.get_profile("cakebread").read()Parse and print profile for a given username in human-readable form:
profile = TwineProfile()
profile.parse_profile(profile.get_profile("cakebread"))