def get_mturk_connection_from_args(args):
  aws_access_key = args.config.get('aws_access_key')
  aws_secret_key = args.config.get('aws_secret_key')
  return get_mturk_connection(sandbox=args.sandbox,
                              aws_access_key=aws_access_key,
                              aws_secret_key=aws_secret_key)
Utility method to get an MTurkConnection from argparse args.
dataset/ETHPy150Open jcjohnson/simple-amt/simpleamt.py/get_mturk_connection_from_args