<s> import beanstalkc <EOL> from pprint import pprint <EOL> sys . path . append ( '<STR_LIT>' ) <EOL> from config import * <EOL> beanstalk = beanstalkc . Connection ( host = BSHOST , port = BSPORT ) <EOL> pprint ( beanstalk . stats ( ) ) <EOL> print "<STR_LIT>" <EOL> print beanstalk . tubes ( ) <EOL> pprint ( beanstalk . stats_tube ( BSMSBOXQ ) ) <EOL> beanstalk . use ( BSMSBOXQ ) <EOL> job = beanstalk . peek_ready ( ) <EOL> if job is None : <EOL> print "<STR_LIT>" <EOL> else : <EOL> pprint ( job . stats ( ) ) <EOL> print job . body </s>
