Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(14)  |  Call(14)  |  Derive(0)  |  Import(0)

src/p/y/python-ceilometerclient-1.0.10/ceilometerclient/v2/shell.py   python-ceilometerclient(Download)
    data = dict([(f.replace('counter_', ''), getattr(sample[0], f, ''))
                 for f in fields])
    utils.print_dict(data, wrap=72)
 
 
    if alarm.time_constraints:
        data['time_constraints'] = alarm_time_constraints_formatter(alarm)
    utils.print_dict(data, wrap=72)
 
 
    except exc.HTTPNotFound:
        raise exc.CommandError('Alarm not found: %s' % args.alarm_id)
    utils.print_dict({'state': state}, wrap=72)
 
 
    except exc.HTTPNotFound:
        raise exc.CommandError('Alarm not found: %s' % args.alarm_id)
    utils.print_dict({'state': state}, wrap=72)
 
 
                  'project_id', 'metadata']
        data = dict([(f, getattr(resource, f, '')) for f in fields])
        utils.print_dict(data, wrap=72)
 
 

src/p/y/python-ceilometerclient-HEAD/ceilometerclient/v2/shell.py   python-ceilometerclient(Download)
    data = dict([(f.replace('counter_', ''), getattr(sample[0], f, ''))
                 for f in fields])
    utils.print_dict(data, wrap=72)
 
 
    if alarm.time_constraints:
        data['time_constraints'] = alarm_time_constraints_formatter(alarm)
    utils.print_dict(data, wrap=72)
 
 
    except exc.HTTPNotFound:
        raise exc.CommandError('Alarm not found: %s' % args.alarm_id)
    utils.print_dict({'state': state}, wrap=72)
 
 
    except exc.HTTPNotFound:
        raise exc.CommandError('Alarm not found: %s' % args.alarm_id)
    utils.print_dict({'state': state}, wrap=72)
 
 
                  'project_id', 'metadata']
        data = dict([(f, getattr(resource, f, '')) for f in fields])
        utils.print_dict(data, wrap=72)
 
 

src/p/y/python-ceilometerclient-1.0.10/ceilometerclient/tests/test_utils.py   python-ceilometerclient(Download)
        try:
            sys.stdout = output_dict = six.StringIO()
            utils.print_dict({'K': 'k', 'Key': 'Value'})
 
        finally:

src/p/y/python-ceilometerclient-HEAD/ceilometerclient/tests/test_utils.py   python-ceilometerclient(Download)
        try:
            sys.stdout = output_dict = six.StringIO()
            utils.print_dict({'K': 'k', 'Key': 'Value'})
 
        finally: