<s> import os <EOL> import ConfigParser <EOL> from seqtweet . seqtweet import SeqTweet <EOL> def read_creds ( ) : <EOL> config = ConfigParser . ConfigParser ( ) <EOL> config . read ( [ os . path . expanduser ( '<STR_LIT>' ) ] ) <EOL> return map ( lambda key : config . get ( '<STR_LIT>' , key ) , <EOL> [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] ) <EOL> def make_client ( ) : <EOL> client = SeqTweet ( * read_creds ( ) ) <EOL> return client <EOL> def make_uploader ( client ) : <EOL> return lambda s : client . create ( s ) <EOL> def make_downloader ( client ) : <EOL> return lambda tweet_id : str ( client . read ( tweet_id ) ) <EOL> def make_deleter ( client ) : <EOL> return lambda tweet_id : client . delete ( tweet_id ) </s>
