Module Expr Str ImportFrom alias ImportFrom alias alias Import alias Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str If Call AttributeLoad SubscriptLoad NameLoad Index Num attr body Assign NameStore Num Assign NameStore TupleLoad Str Num orelse Assign NameStore TupleLoad Str Num Assign NameStore Num ClassDef bases AttributeLoad NameLoad attr body Assign NameStore ListLoad AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Print AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Print NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call AttributeLoad NameLoad attr BinOpMod Str NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam TupleStore NameStore NameStore NameStore defaults body Print Str NameLoad NameLoad NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Print NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Print Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Print AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareNotEq Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num attr Str Num body Expr Call AttributeLoad NameLoad attr Str orelse If CompareNotEq Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num attr Str Num body Expr Call AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpAdd Str AttributeLoad NameLoad attr keyword Num orelse Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad keyword Num keyword CompareNotEq AttributeLoad NameLoad attr NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam TupleStore NameStore NameStore defaults body Print BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareNotEq NameLoad NameLoad body Print Str NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Print Str BoolOpOr BoolOpAnd Call NameLoad NameLoad Str AttributeLoad NameLoad attr NameLoad Print Str NameLoad If UnaryOpNot NameLoad body Return orelse Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Print Str AttributeLoad NameLoad attr Str NameLoad Str NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Print Str AttributeLoad NameLoad attr Print Str Call NameLoad Lambda arguments args NameParam defaults AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Print Str AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str NameLoad If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd AttributeLoad NameLoad attr Str NameLoad If BoolOpAnd CompareNotEq Call AttributeLoad NameLoad attr Str Num CompareNotEq AttributeLoad NameLoad attr BinOpMod Str NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Print AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Print AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Print Str Call NameLoad Lambda arguments args NameParam defaults AttributeLoad NameLoad attr AttributeLoad NameLoad attr If BoolOpAnd CompareNotEq AttributeLoad NameLoad attr BinOpMod Str NameLoad CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Print Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore NameLoad decorator_list Expr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad keyword NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr
N/A N/A 
A very simple example of C{twisted.words.protocols.oscar} code

To run the script:

    $ python oscardemo.py
 twisted.words.protocols oscar twisted.internet protocol reactor N/A getpass N/A SN N/A raw_input Username:  N/A PASS N/A N/A getpass getpass Password:  N/A N/A N/A N/A SN N/A 0 isdigit N/A N/A icqMode 1 N/A hostport N/A login.icq.com 5238 N/A N/A hostport N/A login.oscar.aol.com 5190 N/A icqMode 0 B N/A N/A oscar BOSConnection N/A N/A capabilities N/A N/A oscar CAP_CHAT initDone N/A N/A self N/A N/A N/A N/A N/A N/A N/A self requestSelfInfo addCallback N/A self gotSelfInfo N/A N/A N/A N/A N/A self requestSSI addCallback N/A self gotBuddyList N/A gotSelfInfo N/A N/A self user N/A N/A N/A N/A user __dict__ N/A N/A self name N/A user name N/A gotBuddyList N/A N/A self l N/A N/A N/A l N/A N/A N/A self activateSSI N/A N/A N/A self setProfile N/A this is a test of the current twisted.oscar code.<br>
current features:<br>
* send me a message, and you should get it back.<br>
* invite me to a chat room.  i'll repeat what people say.  say 'leave' and i'll go.<br>
* also, i hang out in '%s Chat'.  join that, i'll repeat what you say there.<br>
* try warning me.  just try it.<br>
<br>
if any of those features don't work, tell paul (Z3Penguin).  thanks. SN N/A N/A N/A self setIdleTime 0 N/A N/A N/A self clientReady N/A N/A N/A N/A N/A self createChat N/A %s Chat SN addCallback N/A self createdRoom N/A createdRoom N/A N/A self N/A exchange fullName instance N/A N/A N/A created room exchange fullName instance N/A N/A N/A N/A N/A self joinChat exchange fullName instance addCallback N/A self chatJoined N/A updateBuddy N/A N/A self user N/A N/A N/A user N/A offlineBuddy N/A N/A self user N/A N/A N/A offline N/A user name N/A receiveMessage N/A N/A self user multiparts flags N/A N/A N/A N/A user name multiparts flags N/A N/A N/A N/A N/A self getAway N/A user name addCallback N/A self gotAway N/A user name N/A N/A N/A N/A N/A N/A multiparts N/A 0 N/A 0 find away -1 N/A N/A N/A N/A self setAway I am away from my computer right now. N/A N/A N/A N/A N/A N/A N/A multiparts N/A 0 N/A 0 find back -1 N/A N/A N/A N/A self setAway None N/A N/A self awayMessage N/A N/A N/A N/A self sendMessage N/A user name N/A <html><font color="#0000ff"> N/A self awayMessage autoResponse 1 N/A N/A N/A self lastUser N/A user name N/A N/A N/A N/A N/A self sendMessage N/A user name multiparts wantAck 1 autoResponse N/A N/A self awayMessage None addCallback N/A self messageAck N/A messageAck N/A N/A self N/A username message N/A N/A N/A N/A message sent to %s acked username N/A gotAway N/A N/A self away user N/A N/A N/A N/A away None N/A N/A got away for user : away N/A receiveWarning N/A N/A self newLevel user N/A N/A N/A got warning from N/A N/A N/A hasattr user name N/A user name None N/A new warning level newLevel N/A N/A user N/A N/A N/A N/A username N/A user name N/A N/A N/A N/A N/A self warnUser username addCallback N/A self warnedUser username N/A warnedUser N/A N/A self oldLevel newLevel username N/A N/A N/A N/A N/A self sendMessage username muahaha :-p N/A receiveChatInvite N/A N/A self user message exchange fullName instance shortName inviteTime N/A N/A N/A chat invite from N/A user name for room shortName with message: message N/A N/A N/A N/A N/A self joinChat exchange fullName instance addCallback N/A self chatJoined N/A chatJoined N/A N/A self chat N/A N/A N/A joined chat room N/A chat name N/A members: N/A map N/A N/A N/A x N/A N/A x name N/A chat members N/A chatReceiveMessage N/A N/A self chat user message N/A N/A N/A message to N/A chat name from N/A user name : message N/A N/A N/A user name N/A self name N/A N/A N/A N/A chat sendMessage N/A N/A N/A user name :  message N/A N/A N/A N/A N/A message find leave -1 N/A N/A chat name N/A %s Chat SN N/A N/A N/A N/A chat leaveChat N/A chatMemberJoined N/A N/A self chat member N/A N/A N/A N/A member name joined N/A chat name N/A chatMemberLeft N/A N/A self chat member N/A N/A N/A N/A member name left N/A chat name N/A current members N/A map N/A N/A N/A x N/A N/A x name N/A chat members N/A N/A N/A N/A chat name N/A %s Chat SN N/A N/A len N/A chat members 1 N/A N/A leaving N/A chat name N/A N/A N/A chat leaveChat N/A N/A OA N/A N/A oscar OscarAuthenticator N/A N/A BOSClass B N/A N/A N/A N/A N/A N/A protocol ClientCreator reactor OA SN PASS icq icqMode connectTCP hostport N/A N/A N/A reactor run